ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/CMakeLists.txt
(Generate patch)

Comparing ray/src/util/CMakeLists.txt (file contents):
Revision 1.5 by greg, Wed May 30 18:31:11 2012 UTC vs.
Revision 1.36 by greg, Mon Sep 9 17:19:51 2019 UTC

# Line 1 | Line 1
1   set(VERSION_FILE "${radiance_BINARY_DIR}/src/util/Version.c")
2   create_version_file("${VERSION_FILE}")
3  
4 < add_executable(dctimestep dctimestep.c)
4 > add_executable(dctimestep dctimestep.c cmbsdf.c cmatrix.c)
5   target_link_libraries(dctimestep rtrad)
6  
7   add_executable(findglare findglare.c glareval.c glaresrc.c setscan.c)
# Line 15 | Line 15 | target_link_libraries(glarendx rtrad)
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  
28   add_executable(rpiece rpiece.c "${VERSION_FILE}")
29   target_link_libraries(rpiece rtrad)
30  
29 add_executable(rtcontrib
30  rtcontrib.c "${VERSION_FILE}")
31 target_link_libraries(rtcontrib rtrad)
32
31   add_executable(vwrays vwrays.c)
32   target_link_libraries(vwrays rtrad)
33  
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)
# Line 45 | Line 46 | target_link_libraries(ranimove raycalls radiance rtrad
46   add_executable(rsensor rsensor.c)
47   target_link_libraries(rsensor raycalls radiance rtrad)
48  
49 + add_executable(rttree_reduce rttree_reduce.c)
50 + target_link_libraries(rttree_reduce rtrad)
51 +
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()
# Line 68 | Line 106 | 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()
84 install(TARGETS dctimestep findglare getinfo glarendx rad ranimate
85                rtcontrib vwrays vwright ranimove rsensor
86        RUNTIME DESTINATION bin)
124  
125 + if(UNIX)
126 +  install(TARGETS rpiece
127 +    RUNTIME DESTINATION "bin"
128 +  )
129 + endif()
130 +
131 + install(TARGETS
132 +  dctimestep
133 +  eplus_adduvf
134 +  evalglare
135 +  findglare
136 +  getinfo
137 +  glarendx
138 +  rad
139 +  radcompare
140 +  ranimate
141 +  ranimove
142 +  rcollate
143 +  rfluxmtx
144 +  rmtxop
145 +  rsensor
146 +  rttree_reduce
147 +  vwrays
148 +  vwright
149 +  wrapBSDF
150 +  RUNTIME DESTINATION "bin"
151 + )
152 +
153 + file(COPY
154 +  ambpos.cal
155 +  disk2square.cal
156 +  klems_full.cal
157 +  klems_half.cal
158 +  klems_quarter.cal
159 +  minimalBSDFt.xml
160 +  rambpos.cal
161 +  reinhartb.cal
162 +  tregsamp.dat
163 +  WINDOW6BSDFt.xml
164 +  DESTINATION "${CMAKE_BINARY_DIR}/lib"
165 + )
166 +
167   if(WIN32)
168 <  install(PROGRAMS genBSDF.pl DESTINATION bin)
169 <  install(PROGRAMS genklemsamp.pl DESTINATION bin)
170 <  install(PROGRAMS genskyvec.pl DESTINATION bin)
171 <  install(FILES tregsamp.dat DESTINATION bin)
168 >  install(PROGRAMS
169 >    bsdfview.pl
170 >    genBSDF.pl
171 >    genklemsamp.pl
172 >    genskyvec.pl
173 >    ltpict.pl
174 >    ltview.pl
175 >    objpict.pl
176 >    objview.pl
177 >    DESTINATION "bin"
178 >  )
179   else()
180 <  install(PROGRAMS genBSDF.pl DESTINATION bin RENAME genBSDF)
181 <  install(PROGRAMS genklemsamp.pl DESTINATION bin RENAME genklemsamp)
182 <  install(PROGRAMS genskyvec.pl DESTINATION bin RENAME genskyvec)
183 <  install(PROGRAMS objview.csh DESTINATION bin RENAME objview)
184 <  install(PROGRAMS objpict.csh DESTINATION bin RENAME objpict)
185 <  install(PROGRAMS glare.csh DESTINATION bin RENAME glare)
186 <  install(PROGRAMS dayfact.csh DESTINATION bin RENAME dayfact)
187 <  install(PROGRAMS rlux.csh DESTINATION bin RENAME rlux)
188 <  install(PROGRAMS raddepend.csh DESTINATION bin RENAME raddepend)
189 <  install(PROGRAMS trad.wsh DESTINATION bin RENAME trad)
190 <  install(PROGRAMS objline.csh DESTINATION bin RENAME objline)
191 <  install(PROGRAMS compamb.csh DESTINATION bin RENAME compamb)
192 <  install(PROGRAMS vinfo.csh DESTINATION bin RENAME vinfo)
193 <  install(PROGRAMS genambpos.csh DESTINATION bin RENAME genambpos)
194 <  install(PROGRAMS fieldcomb.csh DESTINATION bin RENAME fieldcomb)
195 <  install(FILES tregsamp.dat DESTINATION lib)
180 >  install_without_extension(
181 >    bsdfview.pl
182 >    compamb.csh
183 >    dayfact.csh
184 >    fieldcomb.csh
185 >    genBSDF.pl
186 >    genambpos.csh
187 >    genklemsamp.pl
188 >    genskyvec.pl
189 >    glare.csh
190 >    ltpict.pl
191 >    ltview.pl
192 >    objline.csh
193 >    objpict.pl
194 >    objview.pl
195 >    raddepend.csh
196 >    rcode2bmp.pl
197 >    rlux.csh
198 >    rtpict.pl
199 >    trad.wsh
200 >    vinfo.csh
201 >  )
202   endif()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines