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 |
21 |
|
rholo3.c |
22 |
|
rholo4.c |
23 |
|
viewbeams.c |
24 |
< |
${VERSION_FILE} |
24 |
> |
$<TARGET_OBJECTS:version> |
25 |
|
) |
26 |
|
target_link_libraries(rholo rtrad) |
27 |
|
|
34 |
|
rhpict.c |
35 |
|
rhpict2.c |
36 |
|
viewbeams.c |
37 |
< |
${VERSION_FILE} |
37 |
> |
$<TARGET_OBJECTS:version> |
38 |
|
) |
39 |
|
target_link_libraries(rhpict rtrad) |
40 |
|
|
59 |
|
target_link_libraries(x11.hdi rt) |
60 |
|
endif() |
61 |
|
install(TARGETS x11.hdi |
62 |
< |
RUNTIME DESTINATION "bin" |
63 |
< |
) |
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 |