ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/CMakeLists.txt
Revision: 1.18
Committed: Sun Jun 1 03:20:29 2014 UTC (9 years, 11 months ago) by greg
Content type: text/plain
Branch: MAIN
Changes since 1.17: +5 -1 lines
Log Message:
Added number of rows to dctimestep output and rmtxop to cmake build

File Contents

# Content
1 set(VERSION_FILE "${radiance_BINARY_DIR}/src/util/Version.c")
2 create_version_file("${VERSION_FILE}")
3
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)
8 target_link_libraries(findglare rtrad)
9
10 add_executable(getinfo getinfo.c)
11 target_link_libraries(getinfo rtrad)
12
13 add_executable(glarendx glarendx.c)
14 target_link_libraries(glarendx rtrad)
15
16 add_executable(rad rad.c)
17 target_link_libraries(rad rtrad)
18 if(WIN32)
19 set(netproc_SOURCES win_netproc.c)
20 else()
21 set(netproc_SOURCES netproc.c)
22 endif()
23 add_executable(ranimate ranimate.c ${netproc_SOURCES})
24 target_link_libraries(ranimate rtrad)
25
26 add_executable(rpiece rpiece.c "${VERSION_FILE}")
27 target_link_libraries(rpiece rtrad)
28
29 add_executable(vwrays vwrays.c)
30 target_link_libraries(vwrays rtrad)
31
32 add_executable(vwright vwright.c)
33 target_link_libraries(vwright rtrad)
34
35 #the next few libraries all need to include header files from the rt directory
36 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../rt)
37
38 add_executable(ranimove ranimove.c ranimove1.c ranimove2.c)
39 target_link_libraries(ranimove raycalls radiance rtrad)
40
41 add_executable(rsensor rsensor.c)
42 target_link_libraries(rsensor raycalls radiance rtrad)
43
44 add_executable(rttree_reduce rttree_reduce.c)
45 target_link_libraries(rttree_reduce rtrad)
46
47 add_executable(rcollate rcollate.c)
48 target_link_libraries(rcollate rtrad)
49
50 add_executable(rmtxop rmtxop.c rmatrix.c cmbsdf.c cmatrix.c)
51 target_link_libraries(rmtxop rtrad)
52
53 add_executable(eplus_adduvf eplus_adduvf.c eplus_idf.c)
54 target_link_libraries(eplus_adduvf rtrad)
55
56 if(X11_FOUND)
57 add_executable(xglaresrc
58 xglaresrc.c ${CMAKE_CURRENT_SOURCE_DIR}/../common/x11findwind.c)
59 target_link_libraries(xglaresrc rtrad ${X11_LIBRARIES})
60 install(TARGETS xglaresrc RUNTIME DESTINATION bin)
61 endif()
62
63 #glrad needs to link against OpenGL libraries
64 if(APPLE)
65 find_library(OPENGL_gl_LIBRARY
66 NAMES GL MesaGL
67 PATHS /usr/X11R6/lib
68 )
69 find_library(OPENGL_glu_LIBRARY
70 NAMES GLU MesaGLU
71 PATHS /usr/X11R6/lib
72 )
73 set(OPENGL_LIBRARIES ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY})
74 else()
75 find_package(OpenGL REQUIRED)
76 include_directories(${OPENGL_INCLUDE_DIR})
77 endif()
78
79 #check if we have SGIStereo.h
80 find_file(HAVE_SGISTEREO_H "SGIStereo.h" ${OPENGL_INCLUDE_DIR})
81 if(NOT HAVE_SGISTEREO_H)
82 add_definitions(-DNOSTEREO)
83 endif()
84 if(UNIX AND X11_FOUND)
85 add_executable(glrad glrad.c)
86 target_link_libraries(glrad rgl rtrad ${OPENGL_LIBRARIES} ${X11_LIBRARIES})
87 install(TARGETS rpiece RUNTIME DESTINATION bin)
88 if(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
89 target_link_libraries(glrad rt)
90 endif()
91 endif()
92 install(TARGETS dctimestep findglare getinfo glarendx rad ranimate
93 vwrays vwright ranimove rsensor rttree_reduce rcollate
94 rmtxop eplus_adduvf
95 RUNTIME DESTINATION bin)
96
97 install(FILES tregsamp.dat DESTINATION lib)
98
99 if(WIN32)
100 install(PROGRAMS genBSDF.pl DESTINATION bin)
101 install(PROGRAMS genklemsamp.pl DESTINATION bin)
102 install(PROGRAMS genskyvec.pl DESTINATION bin)
103 install(PROGRAMS ltview.pl DESTINATION bin)
104 install(PROGRAMS ltpict.pl DESTINATION bin)
105 install(PROGRAMS objview.pl DESTINATION bin)
106 install(PROGRAMS objpict.pl DESTINATION bin)
107 else()
108 install(PROGRAMS genBSDF.pl DESTINATION bin RENAME genBSDF)
109 install(PROGRAMS genklemsamp.pl DESTINATION bin RENAME genklemsamp)
110 install(PROGRAMS genskyvec.pl DESTINATION bin RENAME genskyvec)
111 install(PROGRAMS genambpos.csh DESTINATION bin RENAME genambpos)
112 install(PROGRAMS ltview.pl DESTINATION bin)
113 install(PROGRAMS ltpict.pl DESTINATION bin)
114 install(PROGRAMS objview.pl DESTINATION bin RENAME objview)
115 install(PROGRAMS objpict.pl DESTINATION bin RENAME objpict)
116 install(PROGRAMS glare.csh DESTINATION bin RENAME glare)
117 install(PROGRAMS dayfact.csh DESTINATION bin RENAME dayfact)
118 install(PROGRAMS rlux.csh DESTINATION bin RENAME rlux)
119 install(PROGRAMS raddepend.csh DESTINATION bin RENAME raddepend)
120 install(PROGRAMS trad.wsh DESTINATION bin RENAME trad)
121 install(PROGRAMS objline.csh DESTINATION bin RENAME objline)
122 install(PROGRAMS compamb.csh DESTINATION bin RENAME compamb)
123 install(PROGRAMS vinfo.csh DESTINATION bin RENAME vinfo)
124 install(PROGRAMS fieldcomb.csh DESTINATION bin RENAME fieldcomb)
125 endif()