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