1 |
+ |
# RCSid $Id$ |
2 |
+ |
|
3 |
|
set(VERSION_FILE "${radiance_BINARY_DIR}/src/util/Version.c") |
4 |
|
create_version_file("${VERSION_FILE}") |
5 |
|
|
6 |
< |
add_executable(dctimestep dctimestep.c) |
6 |
> |
add_executable(dctimestep dctimestep.c cmbsdf.c cmconst.c cmatrix.c) |
7 |
|
target_link_libraries(dctimestep rtrad) |
8 |
|
|
9 |
|
add_executable(findglare findglare.c glareval.c glaresrc.c setscan.c) |
17 |
|
|
18 |
|
add_executable(rad rad.c) |
19 |
|
target_link_libraries(rad rtrad) |
20 |
+ |
|
21 |
+ |
add_executable(rcrop rcrop.c) |
22 |
+ |
target_link_libraries(rcrop rtrad) |
23 |
+ |
|
24 |
|
if(WIN32) |
25 |
|
set(netproc_SOURCES win_netproc.c) |
26 |
|
else() |
27 |
|
set(netproc_SOURCES netproc.c) |
28 |
|
endif() |
29 |
+ |
|
30 |
|
add_executable(ranimate ranimate.c ${netproc_SOURCES}) |
31 |
|
target_link_libraries(ranimate rtrad) |
32 |
|
|
33 |
|
add_executable(rpiece rpiece.c "${VERSION_FILE}") |
34 |
|
target_link_libraries(rpiece rtrad) |
35 |
|
|
29 |
– |
add_executable(rtcontrib |
30 |
– |
rtcontrib.c "${VERSION_FILE}") |
31 |
– |
target_link_libraries(rtcontrib rtrad) |
32 |
– |
|
36 |
|
add_executable(vwrays vwrays.c) |
37 |
|
target_link_libraries(vwrays rtrad) |
38 |
|
|
39 |
|
add_executable(vwright vwright.c) |
40 |
|
target_link_libraries(vwright rtrad) |
41 |
|
|
42 |
+ |
add_executable(dcglare dcglare.c cmbsdf.c cmconst.c cmatrix.c cmglare.c) |
43 |
+ |
target_link_libraries(dcglare rtrad) |
44 |
+ |
|
45 |
|
#the next few libraries all need to include header files from the rt directory |
46 |
< |
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../rt) |
46 |
> |
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../rt") |
47 |
|
|
48 |
|
add_executable(ranimove ranimove.c ranimove1.c ranimove2.c) |
49 |
|
target_link_libraries(ranimove raycalls radiance rtrad) |
51 |
|
add_executable(rsensor rsensor.c) |
52 |
|
target_link_libraries(rsensor raycalls radiance rtrad) |
53 |
|
|
54 |
+ |
add_executable(rttree_reduce rttree_reduce.c) |
55 |
+ |
target_link_libraries(rttree_reduce rtrad) |
56 |
+ |
|
57 |
+ |
add_executable(rcollate rcollate.c) |
58 |
+ |
target_link_libraries(rcollate rtrad) |
59 |
+ |
|
60 |
+ |
add_executable(rmtxop rmtxop.c rmatrix.c cmconst.c cmbsdf.c cmatrix.c rmconvert.c) |
61 |
+ |
target_link_libraries(rmtxop rtrad) |
62 |
+ |
|
63 |
+ |
add_executable(rcomb rcomb.c cmconst.c rmatrix.c) |
64 |
+ |
target_link_libraries(rcomb rtrad) |
65 |
+ |
|
66 |
+ |
add_executable(pvsum pvsum.c cmconst.c rmatrix.c) |
67 |
+ |
target_link_libraries(pvsum rtrad) |
68 |
+ |
|
69 |
+ |
add_executable(wrapBSDF wrapBSDF.c) |
70 |
+ |
target_link_libraries(wrapBSDF rtrad) |
71 |
+ |
|
72 |
+ |
add_executable(eplus_adduvf eplus_adduvf.c eplus_idf.c) |
73 |
+ |
target_link_libraries(eplus_adduvf rtrad) |
74 |
+ |
|
75 |
+ |
add_executable(rfluxmtx rfluxmtx.c) |
76 |
+ |
target_link_libraries(rfluxmtx rtrad) |
77 |
+ |
|
78 |
+ |
add_executable(evalglare evalglare.c pictool.c) |
79 |
+ |
target_link_libraries(evalglare rtrad reetz) |
80 |
+ |
|
81 |
+ |
add_executable(radcompare radcompare.c) |
82 |
+ |
target_link_libraries(radcompare rtrad) |
83 |
+ |
|
84 |
+ |
add_executable(rcode_depth rcode_depth.c) |
85 |
+ |
target_link_libraries(rcode_depth rtrad) |
86 |
+ |
|
87 |
+ |
add_executable(rcode_norm rcode_norm.c) |
88 |
+ |
target_link_libraries(rcode_norm rtrad) |
89 |
+ |
|
90 |
+ |
add_executable(rcode_ident rcode_ident.c) |
91 |
+ |
target_link_libraries(rcode_ident rtrad) |
92 |
+ |
|
93 |
|
if(X11_FOUND) |
94 |
|
add_executable(xglaresrc |
95 |
< |
xglaresrc.c ${CMAKE_CURRENT_SOURCE_DIR}/../common/x11findwind.c) |
95 |
> |
xglaresrc.c |
96 |
> |
"${CMAKE_CURRENT_SOURCE_DIR}/../common/x11findwind.c" |
97 |
> |
) |
98 |
|
target_link_libraries(xglaresrc rtrad ${X11_LIBRARIES}) |
99 |
< |
install(TARGETS xglaresrc RUNTIME DESTINATION bin) |
99 |
> |
install(TARGETS xglaresrc |
100 |
> |
RUNTIME DESTINATION "bin" |
101 |
> |
) |
102 |
|
endif() |
103 |
|
|
104 |
|
#glrad needs to link against OpenGL libraries |
105 |
|
if(APPLE) |
106 |
|
find_library(OPENGL_gl_LIBRARY |
107 |
|
NAMES GL MesaGL |
108 |
< |
PATHS /usr/X11R6/lib |
108 |
> |
PATHS ${X11_LIB_SEARCH_PATH} |
109 |
|
) |
110 |
|
find_library(OPENGL_glu_LIBRARY |
111 |
|
NAMES GLU MesaGLU |
112 |
< |
PATHS /usr/X11R6/lib |
112 |
> |
PATHS ${X11_LIB_SEARCH_PATH} |
113 |
|
) |
114 |
|
set(OPENGL_LIBRARIES ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY}) |
115 |
|
else() |
117 |
|
include_directories(${OPENGL_INCLUDE_DIR}) |
118 |
|
endif() |
119 |
|
|
120 |
< |
#check if we have SGIStereo.h |
120 |
> |
#check if we have SGIStereo.h |
121 |
|
find_file(HAVE_SGISTEREO_H "SGIStereo.h" ${OPENGL_INCLUDE_DIR}) |
122 |
|
if(NOT HAVE_SGISTEREO_H) |
123 |
< |
add_definitions(-DNOSTEREO) |
123 |
> |
add_definitions(-DNOSTEREO) |
124 |
|
endif() |
125 |
< |
if(UNIX) |
126 |
< |
add_executable(glrad glrad.c) |
127 |
< |
target_link_libraries(glrad rgl rtrad ${OPENGL_LIBRARIES} ${X11_LIBRARIES}) |
128 |
< |
install(TARGETS rpiece RUNTIME DESTINATION bin) |
125 |
> |
if(UNIX AND X11_FOUND) |
126 |
> |
add_executable(glrad glrad.c) |
127 |
> |
target_link_libraries(glrad rgl rtrad ${OPENGL_LIBRARIES} ${X11_LIBRARIES}) |
128 |
> |
install(TARGETS glrad |
129 |
> |
RUNTIME DESTINATION "bin" |
130 |
> |
) |
131 |
|
if(CMAKE_SYSTEM_NAME STREQUAL "SunOS") |
132 |
|
target_link_libraries(glrad rt) |
133 |
|
endif() |
134 |
|
endif() |
84 |
– |
install(TARGETS dctimestep findglare getinfo glarendx rad ranimate |
85 |
– |
rtcontrib vwrays vwright ranimove rsensor |
86 |
– |
RUNTIME DESTINATION bin) |
135 |
|
|
136 |
+ |
if(UNIX) |
137 |
+ |
install(TARGETS rpiece |
138 |
+ |
RUNTIME DESTINATION "bin" |
139 |
+ |
) |
140 |
+ |
endif() |
141 |
+ |
|
142 |
+ |
install(TARGETS |
143 |
+ |
dcglare |
144 |
+ |
dctimestep |
145 |
+ |
eplus_adduvf |
146 |
+ |
evalglare |
147 |
+ |
findglare |
148 |
+ |
getinfo |
149 |
+ |
glarendx |
150 |
+ |
rad |
151 |
+ |
radcompare |
152 |
+ |
ranimate |
153 |
+ |
ranimove |
154 |
+ |
rcode_depth |
155 |
+ |
rcode_ident |
156 |
+ |
rcode_norm |
157 |
+ |
rcollate |
158 |
+ |
rcrop |
159 |
+ |
rfluxmtx |
160 |
+ |
rmtxop |
161 |
+ |
rcomb |
162 |
+ |
rsensor |
163 |
+ |
rttree_reduce |
164 |
+ |
vwrays |
165 |
+ |
vwright |
166 |
+ |
wrapBSDF |
167 |
+ |
RUNTIME DESTINATION "bin" |
168 |
+ |
) |
169 |
+ |
|
170 |
+ |
file(COPY |
171 |
+ |
ambpos.cal |
172 |
+ |
disk2square.cal |
173 |
+ |
hsv_rgb.cal |
174 |
+ |
klems_full.cal |
175 |
+ |
klems_half.cal |
176 |
+ |
klems_quarter.cal |
177 |
+ |
minimalBSDFt.xml |
178 |
+ |
rambpos.cal |
179 |
+ |
reinhartb.cal |
180 |
+ |
tregsamp.dat |
181 |
+ |
WINDOW6BSDFt.xml |
182 |
+ |
DESTINATION "${CMAKE_BINARY_DIR}/lib" |
183 |
+ |
) |
184 |
+ |
|
185 |
|
if(WIN32) |
186 |
< |
install(PROGRAMS genBSDF.pl DESTINATION bin) |
187 |
< |
install(PROGRAMS genklemsamp.pl DESTINATION bin) |
188 |
< |
install(PROGRAMS genskyvec.pl DESTINATION bin) |
189 |
< |
install(FILES tregsamp.dat DESTINATION bin) |
190 |
< |
install(PROGRAMS objview.rb DESTINATION bin) |
186 |
> |
add_custom_target(bsdfview ALL |
187 |
> |
COMMAND pp ${CMAKE_CURRENT_SOURCE_DIR}/bsdfview.pl -o ${CMAKE_CURRENT_SOURCE_DIR}/bsdfview.exe -d |
188 |
> |
) |
189 |
> |
add_custom_target(genBSDF ALL |
190 |
> |
COMMAND pp ${CMAKE_CURRENT_SOURCE_DIR}/genBSDF.pl -o ${CMAKE_CURRENT_SOURCE_DIR}/genBSDF.exe -d |
191 |
> |
) |
192 |
> |
add_custom_target(genklemsamp ALL |
193 |
> |
COMMAND pp ${CMAKE_CURRENT_SOURCE_DIR}/genklemsamp.pl -o ${CMAKE_CURRENT_SOURCE_DIR}/genklemsamp.exe -d |
194 |
> |
) |
195 |
> |
add_custom_target(genskyvec ALL |
196 |
> |
COMMAND pp ${CMAKE_CURRENT_SOURCE_DIR}/genskyvec.pl -o ${CMAKE_CURRENT_SOURCE_DIR}/genskyvec.exe -d |
197 |
> |
) |
198 |
> |
add_custom_target(ltpict ALL |
199 |
> |
COMMAND pp ${CMAKE_CURRENT_SOURCE_DIR}/ltpict.pl -o ${CMAKE_CURRENT_SOURCE_DIR}/ltpict.exe -d |
200 |
> |
) |
201 |
> |
add_custom_target(ltview ALL |
202 |
> |
COMMAND pp ${CMAKE_CURRENT_SOURCE_DIR}/ltview.pl -o ${CMAKE_CURRENT_SOURCE_DIR}/ltview.exe -d |
203 |
> |
) |
204 |
> |
add_custom_target(objpict ALL |
205 |
> |
COMMAND pp ${CMAKE_CURRENT_SOURCE_DIR}/objpict.pl -o ${CMAKE_CURRENT_SOURCE_DIR}/objpict.exe -d |
206 |
> |
) |
207 |
> |
add_custom_target(objview ALL |
208 |
> |
COMMAND pp ${CMAKE_CURRENT_SOURCE_DIR}/objview.pl -o ${CMAKE_CURRENT_SOURCE_DIR}/objview.exe -d |
209 |
> |
) |
210 |
> |
add_custom_target(genambpos ALL |
211 |
> |
COMMAND pp ${CMAKE_CURRENT_SOURCE_DIR}/genambpos.pl -o ${CMAKE_CURRENT_SOURCE_DIR}/genambpos.exe -d |
212 |
> |
) |
213 |
> |
add_custom_target(rcode2bmp ALL |
214 |
> |
COMMAND pp ${CMAKE_CURRENT_SOURCE_DIR}/rcode2bmp.pl -o ${CMAKE_CURRENT_SOURCE_DIR}/rcode2bmp.exe -d |
215 |
> |
) |
216 |
> |
add_custom_target(rtpict ALL |
217 |
> |
COMMAND pp ${CMAKE_CURRENT_SOURCE_DIR}/rtpict.pl -o ${CMAKE_CURRENT_SOURCE_DIR}/rtpict.exe -d |
218 |
> |
) |
219 |
> |
install(PROGRAMS |
220 |
> |
bsdfview.exe |
221 |
> |
genBSDF.exe |
222 |
> |
genklemsamp.exe |
223 |
> |
genskyvec.exe |
224 |
> |
ltpict.exe |
225 |
> |
ltview.exe |
226 |
> |
objpict.exe |
227 |
> |
objview.exe |
228 |
> |
genambpos.exe |
229 |
> |
rcode2bmp.exe |
230 |
> |
rtpict.exe |
231 |
> |
DESTINATION "bin" |
232 |
> |
) |
233 |
|
else() |
234 |
< |
install(PROGRAMS genBSDF.pl DESTINATION bin RENAME genBSDF) |
235 |
< |
install(PROGRAMS genklemsamp.pl DESTINATION bin RENAME genklemsamp) |
236 |
< |
install(PROGRAMS genskyvec.pl DESTINATION bin RENAME genskyvec) |
237 |
< |
install(PROGRAMS objview.csh DESTINATION bin RENAME objview) |
238 |
< |
install(PROGRAMS objview.rb DESTINATION bin) |
239 |
< |
install(PROGRAMS objpict.csh DESTINATION bin RENAME objpict) |
240 |
< |
install(PROGRAMS glare.csh DESTINATION bin RENAME glare) |
241 |
< |
install(PROGRAMS dayfact.csh DESTINATION bin RENAME dayfact) |
242 |
< |
install(PROGRAMS rlux.csh DESTINATION bin RENAME rlux) |
243 |
< |
install(PROGRAMS raddepend.csh DESTINATION bin RENAME raddepend) |
244 |
< |
install(PROGRAMS trad.wsh DESTINATION bin RENAME trad) |
245 |
< |
install(PROGRAMS objline.csh DESTINATION bin RENAME objline) |
246 |
< |
install(PROGRAMS compamb.csh DESTINATION bin RENAME compamb) |
247 |
< |
install(PROGRAMS vinfo.csh DESTINATION bin RENAME vinfo) |
248 |
< |
install(PROGRAMS genambpos.csh DESTINATION bin RENAME genambpos) |
249 |
< |
install(PROGRAMS fieldcomb.csh DESTINATION bin RENAME fieldcomb) |
250 |
< |
install(FILES tregsamp.dat DESTINATION lib) |
234 |
> |
install_without_extension( |
235 |
> |
bsdfview.pl |
236 |
> |
compamb.csh |
237 |
> |
dayfact.csh |
238 |
> |
fieldcomb.csh |
239 |
> |
genBSDF.pl |
240 |
> |
genambpos.pl |
241 |
> |
genklemsamp.pl |
242 |
> |
genskyvec.pl |
243 |
> |
glare.csh |
244 |
> |
ltpict.pl |
245 |
> |
ltview.pl |
246 |
> |
objline.csh |
247 |
> |
objpict.pl |
248 |
> |
objview.pl |
249 |
> |
raddepend.csh |
250 |
> |
rcode2bmp.pl |
251 |
> |
rlux.csh |
252 |
> |
rtpict.pl |
253 |
> |
vinfo.csh |
254 |
> |
) |
255 |
> |
# add_custom_target(trad ALL |
256 |
> |
# COMMAND csh -f ${CMAKE_CURRENT_SOURCE_DIR}/tradinstall.csh ../../build/bin ../../build/lib |
257 |
> |
# ) |
258 |
> |
# install(FILES |
259 |
> |
# ${CMAKE_BINARY_DIR}/bin/trad |
260 |
> |
# DESTINATION "bin" |
261 |
> |
# PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ |
262 |
> |
# ) |
263 |
|
endif() |