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.1 by greg, Sat Oct 22 22:38:10 2011 UTC vs.
Revision 1.29 by greg, Mon Oct 15 19:12:54 2018 UTC

# Line 1 | Line 1
1   set(VERSION_FILE "${radiance_BINARY_DIR}/src/util/Version.c")
2 < add_custom_command(
3 <  OUTPUT "${VERSION_FILE}"
4 <  DEPENDS "${radiance_SOURCE_DIR}/src/util/VERSION"
5 <  COMMAND "${CMAKE_COMMAND}"
6 <  -DVERSION_OUT_FILE="${VERSION_FILE}"
7 <  -DVERSION_IN_FILE="${radiance_SOURCE_DIR}/src/util/VERSION"
8 <  -P "${radiance_SOURCE_DIR}/src/common/create_version.cmake"
9 < )
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 22 | 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  
36 add_executable(rtcontrib
37  rtcontrib.c "${VERSION_FILE}")
38 target_link_libraries(rtcontrib rtrad)
39
31   add_executable(vwrays vwrays.c)
32   target_link_libraries(vwrays rtrad)
33  
# Line 44 | Line 35 | add_executable(vwright vwright.c)
35   target_link_libraries(vwright rtrad)
36  
37   #the next few libraries all need to include header files from the rt directory
38 < include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../rt)
38 > include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../rt")
39  
40   add_executable(ranimove ranimove.c ranimove1.c ranimove2.c)
41   target_link_libraries(ranimove raycalls radiance rtrad)
# Line 52 | Line 43 | target_link_libraries(ranimove raycalls radiance rtrad
43   add_executable(rsensor rsensor.c)
44   target_link_libraries(rsensor raycalls radiance rtrad)
45  
46 + add_executable(rttree_reduce rttree_reduce.c)
47 + target_link_libraries(rttree_reduce rtrad)
48 +
49 + add_executable(rcollate rcollate.c)
50 + target_link_libraries(rcollate rtrad)
51 +
52 + add_executable(rmtxop rmtxop.c rmatrix.c cmbsdf.c cmatrix.c)
53 + target_link_libraries(rmtxop rtrad)
54 +
55 + add_executable(wrapBSDF wrapBSDF.c)
56 + target_link_libraries(wrapBSDF rtrad)
57 +
58 + add_executable(eplus_adduvf eplus_adduvf.c eplus_idf.c)
59 + target_link_libraries(eplus_adduvf rtrad)
60 +
61 + add_executable(rfluxmtx rfluxmtx.c)
62 + target_link_libraries(rfluxmtx rtrad)
63 +
64 + add_executable(evalglare evalglare.c pictool.c)
65 + target_link_libraries(evalglare rtrad libreetz)
66 +
67 + add_executable(radcompare radcompare.c)
68 + target_link_libraries(radcompare rtrad)
69 +
70   if(X11_FOUND)
71    add_executable(xglaresrc
72 <    xglaresrc.c ${CMAKE_CURRENT_SOURCE_DIR}/../common/x11findwind.c)
72 >    xglaresrc.c
73 >    "${CMAKE_CURRENT_SOURCE_DIR}/../common/x11findwind.c"
74 >  )
75    target_link_libraries(xglaresrc rtrad ${X11_LIBRARIES})
76 <  install(TARGETS xglaresrc RUNTIME DESTINATION bin)
76 >  install(TARGETS xglaresrc
77 >    RUNTIME DESTINATION "bin"
78 >  )
79   endif()
80  
81 < find_library(LIB_RGL "rgl" DOC "Path to librgl")
82 < if(LIB_RGL)
83 <  #glrad needs to be able to include OpenGL headers
81 > #glrad needs to link against OpenGL libraries
82 > if(APPLE)
83 >  find_library(OPENGL_gl_LIBRARY
84 >    NAMES GL MesaGL
85 >    PATHS ${X11_LIB_SEARCH_PATH}
86 >  )
87 >  find_library(OPENGL_glu_LIBRARY
88 >    NAMES GLU MesaGLU
89 >    PATHS ${X11_LIB_SEARCH_PATH}
90 >  )
91 >  set(OPENGL_LIBRARIES ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY})
92 > else()
93 >  find_package(OpenGL REQUIRED)
94    include_directories(${OPENGL_INCLUDE_DIR})
95 + endif()
96  
97 <  #check if we have SGIStereo.h
98 <  find_file(HAVE_SGISTEREO_H "SGIStereo.h" ${OPENGL_INCLUDE_DIR})
99 <  if(NOT HAVE_SGISTEREO_H)
100 <    add_definitions(-DNOSTEREO)
97 > #check if we have SGIStereo.h
98 > find_file(HAVE_SGISTEREO_H "SGIStereo.h" ${OPENGL_INCLUDE_DIR})
99 > if(NOT HAVE_SGISTEREO_H)
100 >  add_definitions(-DNOSTEREO)
101 > endif()
102 > if(UNIX AND X11_FOUND)
103 >  add_executable(glrad glrad.c)
104 >  target_link_libraries(glrad rgl rtrad ${OPENGL_LIBRARIES} ${X11_LIBRARIES})
105 >  install(TARGETS glrad
106 >    RUNTIME DESTINATION "bin"
107 >  )
108 >  if(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
109 >    target_link_libraries(glrad rt)
110    endif()
111 + endif()
112  
113 <  add_executable(glrad glrad.c)
114 <  target_link_libraries(glrad
115 <    rtrad ${LIB_RGL} ${OPENGL_LIBRARIES} ${X11_LIBRARIES})
116 <  install(TARGETS glrad RUNTIME DESTINATION bin)
113 > if(UNIX)
114 >  install(TARGETS rpiece
115 >    RUNTIME DESTINATION "bin"
116 >  )
117   endif()
118  
119 < install(TARGETS dctimestep findglare getinfo glarendx rad ranimate rpiece
120 <                rtcontrib vwrays vwright ranimove rsensor
121 <        RUNTIME DESTINATION bin)
122 < install(FILES objview.csh objpict.csh glare.csh dayfact.csh rlux.csh
123 <              raddepend.csh trad.wsh objline.csh compamb.csh vinfo.csh
124 <              genambpos.csh fieldcomb.csh genklemsamp.pl genskyvec.pl
125 <              genBSDF.pl tregsamp.dat
126 <        DESTINATION bin)
119 > install(TARGETS
120 >  dctimestep
121 >  eplus_adduvf
122 >  evalglare
123 >  findglare
124 >  getinfo
125 >  glarendx
126 >  rad
127 >  radcompare
128 >  ranimate
129 >  ranimove
130 >  rcollate
131 >  rfluxmtx
132 >  rmtxop
133 >  rsensor
134 >  rttree_reduce
135 >  vwrays
136 >  vwright
137 >  wrapBSDF
138 >  RUNTIME DESTINATION "bin"
139 > )
140 >
141 > file(COPY
142 >  ambpos.cal
143 >  disk2square.cal
144 >  klems_full.cal
145 >  klems_half.cal
146 >  klems_quarter.cal
147 >  minimalBSDFt.xml
148 >  rambpos.cal
149 >  reinhartb.cal
150 >  tregsamp.dat
151 >  WINDOW6BSDFt.xml
152 >  DESTINATION "${CMAKE_BINARY_DIR}/lib"
153 > )
154 >
155 > if(WIN32)
156 >  install(PROGRAMS
157 >    bsdfview.pl
158 >    genBSDF.pl
159 >    genklemsamp.pl
160 >    genskyvec.pl
161 >    ltpict.pl
162 >    ltview.pl
163 >    objpict.pl
164 >    objview.pl
165 >    DESTINATION "bin"
166 >  )
167 > else()
168 >  install_without_extension(
169 >    bsdfview.pl
170 >    compamb.csh
171 >    dayfact.csh
172 >    fieldcomb.csh
173 >    genBSDF.pl
174 >    genambpos.csh
175 >    genklemsamp.pl
176 >    genskyvec.pl
177 >    glare.csh
178 >    ltpict.pl
179 >    ltview.pl
180 >    objline.csh
181 >    objpict.pl
182 >    objview.pl
183 >    raddepend.csh
184 >    rlux.csh
185 >    rtpict.pl
186 >    trad.wsh
187 >    vinfo.csh
188 >  )
189 > endif()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines