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