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 |
|
10 |
if(UNIX) |
11 |
set(VERSION_FILE "${radiance_BINARY_DIR}/src/hd/Version.c") |
12 |
create_version_file("${VERSION_FILE}") |
13 |
add_library(version OBJECT "${VERSION_FILE}") |
14 |
|
15 |
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 |
$<TARGET_OBJECTS:version> |
25 |
) |
26 |
target_link_libraries(rholo rtrad) |
27 |
|
28 |
add_executable(rhoptimize rhoptimize.c clumpbeams.c holo.c holofile.c) |
29 |
target_link_libraries(rhoptimize rtrad) |
30 |
|
31 |
add_executable(rhpict |
32 |
holo.c |
33 |
holofile.c |
34 |
rhpict.c |
35 |
rhpict2.c |
36 |
viewbeams.c |
37 |
$<TARGET_OBJECTS:version> |
38 |
) |
39 |
target_link_libraries(rhpict rtrad) |
40 |
|
41 |
install(TARGETS rholo rhoptimize rhpict |
42 |
RUNTIME DESTINATION "bin" |
43 |
) |
44 |
|
45 |
if(X11_FOUND) |
46 |
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 |
if(CMAKE_SYSTEM_NAME STREQUAL "SunOS") |
59 |
target_link_libraries(x11.hdi rt) |
60 |
endif() |
61 |
install(TARGETS x11.hdi |
62 |
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 |
endif() |
82 |
|
83 |
endif() |
84 |
|
85 |
install(TARGETS genrhgrid rhcopy rhinfo |
86 |
RUNTIME DESTINATION "bin" |
87 |
) |