| 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 |
|
| 14 |
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 |
target_link_libraries(rholo rtrad) |
| 26 |
|
| 27 |
add_executable(rhoptimize rhoptimize.c clumpbeams.c holo.c holofile.c) |
| 28 |
target_link_libraries(rhoptimize rtrad) |
| 29 |
|
| 30 |
add_executable(rhpict |
| 31 |
holo.c |
| 32 |
holofile.c |
| 33 |
rhpict.c |
| 34 |
rhpict2.c |
| 35 |
viewbeams.c |
| 36 |
${VERSION_FILE} |
| 37 |
) |
| 38 |
target_link_libraries(rhpict rtrad) |
| 39 |
|
| 40 |
install(TARGETS rholo rhoptimize rhpict |
| 41 |
RUNTIME DESTINATION "bin" |
| 42 |
) |
| 43 |
|
| 44 |
if(X11_FOUND) |
| 45 |
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 |
if(CMAKE_SYSTEM_NAME STREQUAL "SunOS") |
| 58 |
target_link_libraries(x11.hdi rt) |
| 59 |
endif() |
| 60 |
install(TARGETS x11.hdi |
| 61 |
RUNTIME DESTINATION "bin" |
| 62 |
) |
| 63 |
endif() |
| 64 |
endif() |
| 65 |
|
| 66 |
install(TARGETS genrhgrid rhcopy rhinfo |
| 67 |
RUNTIME DESTINATION "bin" |
| 68 |
) |