1 |
set(VERSION_FILE "${radiance_BINARY_DIR}/src/hd/Version.c") |
2 |
add_custom_command( |
3 |
OUTPUT "${VERSION_FILE}" |
4 |
COMMAND "${CMAKE_COMMAND}" |
5 |
-DVERSION_OUT_FILE="${VERSION_FILE}" |
6 |
-DVERSION_IN_FILE="${radiance_SOURCE_DIR}/src/util/VERSION" |
7 |
-P "${radiance_SOURCE_DIR}/src/common/create_version.cmake" |
8 |
) |
9 |
|
10 |
add_executable(genrhgrid genrhgrid.c holo.c) |
11 |
target_link_libraries(genrhgrid rtrad) |
12 |
|
13 |
add_executable(rhcopy rhcopy.c clumpbeams.c holo.c holofile.c) |
14 |
target_link_libraries(rhcopy rtrad) |
15 |
|
16 |
add_executable(rhinfo rhinfo.c holo.c holofile.c) |
17 |
target_link_libraries(rhinfo rtrad) |
18 |
if(NOT WIN32) |
19 |
add_executable(rholo rholo.c rholo2.c rholo2l.c rholo3.c rholo4.c holo.c |
20 |
holofile.c viewbeams.c ${VERSION_FILE}) |
21 |
target_link_libraries(rholo rtrad) |
22 |
add_executable(rhoptimize rhoptimize.c clumpbeams.c holo.c holofile.c) |
23 |
target_link_libraries(rhoptimize rtrad) |
24 |
add_executable(rhpict |
25 |
rhpict.c rhpict2.c holo.c holofile.c viewbeams.c ${VERSION_FILE}) |
26 |
target_link_libraries(rhpict rtrad) |
27 |
install(TARGETS rholo rhoptimize rhpict RUNTIME DESTINATION bin) |
28 |
endif() |
29 |
|
30 |
install(TARGETS genrhgrid rhcopy RUNTIME DESTINATION bin) |