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 |
– |
|
1 |
|
add_executable(genrhgrid genrhgrid.c holo.c) |
2 |
|
target_link_libraries(genrhgrid rtrad) |
3 |
|
|
6 |
|
|
7 |
|
add_executable(rhinfo rhinfo.c holo.c holofile.c) |
8 |
|
target_link_libraries(rhinfo rtrad) |
9 |
< |
if(NOT WIN32) |
10 |
< |
add_executable(rholo rholo.c rholo2.c rholo2l.c rholo3.c rholo4.c holo.c |
11 |
< |
holofile.c viewbeams.c ${VERSION_FILE}) |
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 |
< |
rhpict.c rhpict2.c holo.c holofile.c viewbeams.c ${VERSION_FILE}) |
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 |
< |
install(TARGETS rholo rhoptimize rhpict RUNTIME DESTINATION bin) |
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 RUNTIME DESTINATION bin) |
66 |
> |
install(TARGETS genrhgrid rhcopy rhinfo |
67 |
> |
RUNTIME DESTINATION "bin" |
68 |
> |
) |