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