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