ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/hd/CMakeLists.txt
Revision: 1.8
Committed: Mon Jan 8 16:51:32 2018 UTC (6 years, 4 months ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: rad5R4, rad5R2, rad5R3
Changes since 1.7: +43 -9 lines
Log Message:
Update to CMake build system from Rob G. and Alex S., adding test cases

File Contents

# User Rev Content
1 greg 1.1 add_executable(genrhgrid genrhgrid.c holo.c)
2     target_link_libraries(genrhgrid rtrad)
3    
4     add_executable(rhcopy rhcopy.c clumpbeams.c holo.c holofile.c)
5     target_link_libraries(rhcopy rtrad)
6    
7     add_executable(rhinfo rhinfo.c holo.c holofile.c)
8     target_link_libraries(rhinfo rtrad)
9 greg 1.8
10 greg 1.5 if(UNIX)
11 greg 1.3 set(VERSION_FILE "${radiance_BINARY_DIR}/src/hd/Version.c")
12     create_version_file("${VERSION_FILE}")
13    
14 greg 1.8 add_executable(rholo
15     holo.c
16     holofile.c
17     rholo.c
18     rholo2.c
19     rholo2l.c
20     rholo3.c
21     rholo4.c
22     viewbeams.c
23     ${VERSION_FILE}
24     )
25 greg 1.1 target_link_libraries(rholo rtrad)
26 greg 1.8
27 greg 1.1 add_executable(rhoptimize rhoptimize.c clumpbeams.c holo.c holofile.c)
28     target_link_libraries(rhoptimize rtrad)
29 greg 1.8
30 greg 1.1 add_executable(rhpict
31 greg 1.8 holo.c
32     holofile.c
33     rhpict.c
34     rhpict2.c
35     viewbeams.c
36     ${VERSION_FILE}
37     )
38 greg 1.1 target_link_libraries(rhpict rtrad)
39 greg 1.8
40     install(TARGETS rholo rhoptimize rhpict
41     RUNTIME DESTINATION "bin"
42     )
43 greg 1.5
44 greg 1.7 if(X11_FOUND)
45 greg 1.8 add_executable(x11.hdi
46     holo.c
47     rhd_ctab.c
48     rhd_qtree.c
49     rhd_qtree2r.c
50     rhd_x11.c
51     rhdisp.c
52     rhdisp2.c
53     viewbeams.c
54     )
55     target_link_libraries(x11.hdi rtrad ${X11_LIBRARIES})
56    
57 greg 1.7 if(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
58     target_link_libraries(x11.hdi rt)
59     endif()
60 greg 1.8 install(TARGETS x11.hdi
61     RUNTIME DESTINATION "bin"
62     )
63 greg 1.6 endif()
64 greg 1.1 endif()
65    
66 greg 1.8 install(TARGETS genrhgrid rhcopy rhinfo
67     RUNTIME DESTINATION "bin"
68     )