ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/src/hd/CMakeLists.txt
Revision: 1.10
Committed: Thu Jul 24 01:24:01 2025 UTC (2 months ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +2 -0 lines
Log Message:
chore: Added version string to all CMakeLists.txt files

File Contents

# User Rev Content
1 greg 1.10 # RCSid $Id$
2    
3 greg 1.1 add_executable(genrhgrid genrhgrid.c holo.c)
4     target_link_libraries(genrhgrid rtrad)
5    
6     add_executable(rhcopy rhcopy.c clumpbeams.c holo.c holofile.c)
7     target_link_libraries(rhcopy rtrad)
8    
9     add_executable(rhinfo rhinfo.c holo.c holofile.c)
10     target_link_libraries(rhinfo rtrad)
11 greg 1.8
12 greg 1.5 if(UNIX)
13 greg 1.3 set(VERSION_FILE "${radiance_BINARY_DIR}/src/hd/Version.c")
14     create_version_file("${VERSION_FILE}")
15 greg 1.9 add_library(version OBJECT "${VERSION_FILE}")
16 greg 1.3
17 greg 1.8 add_executable(rholo
18     holo.c
19     holofile.c
20     rholo.c
21     rholo2.c
22     rholo2l.c
23     rholo3.c
24     rholo4.c
25     viewbeams.c
26 greg 1.9 $<TARGET_OBJECTS:version>
27 greg 1.8 )
28 greg 1.1 target_link_libraries(rholo rtrad)
29 greg 1.8
30 greg 1.1 add_executable(rhoptimize rhoptimize.c clumpbeams.c holo.c holofile.c)
31     target_link_libraries(rhoptimize rtrad)
32 greg 1.8
33 greg 1.1 add_executable(rhpict
34 greg 1.8 holo.c
35     holofile.c
36     rhpict.c
37     rhpict2.c
38     viewbeams.c
39 greg 1.9 $<TARGET_OBJECTS:version>
40 greg 1.8 )
41 greg 1.1 target_link_libraries(rhpict rtrad)
42 greg 1.8
43     install(TARGETS rholo rhoptimize rhpict
44     RUNTIME DESTINATION "bin"
45     )
46 greg 1.5
47 greg 1.7 if(X11_FOUND)
48 greg 1.8 add_executable(x11.hdi
49     holo.c
50     rhd_ctab.c
51     rhd_qtree.c
52     rhd_qtree2r.c
53     rhd_x11.c
54     rhdisp.c
55     rhdisp2.c
56     viewbeams.c
57     )
58     target_link_libraries(x11.hdi rtrad ${X11_LIBRARIES})
59    
60 greg 1.7 if(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
61     target_link_libraries(x11.hdi rt)
62     endif()
63 greg 1.8 install(TARGETS x11.hdi
64 greg 1.9 RUNTIME DESTINATION "bin/dev"
65     )
66    
67     if(OPENGL_FOUND)
68     add_executable(ogl.hdi
69     rhd_ogl.c
70     rhdisp.c
71     rhdisp2.c
72     viewbeams.c
73     rhd_odraw.c
74     rhd_geom.c
75     holo.c)
76     target_link_libraries(
77     ogl.hdi rgl rtrad ${X11_LIBRARIES} ${OPENGL_LIBRARIES})
78     install(TARGETS ogl.hdi
79     RUNTIME DESTINATION "bin/dev"
80     )
81     endif()
82    
83 greg 1.6 endif()
84 greg 1.9
85 greg 1.1 endif()
86    
87 greg 1.8 install(TARGETS genrhgrid rhcopy rhinfo
88     RUNTIME DESTINATION "bin"
89     )