1 |
+ |
# Locate the threads package |
2 |
+ |
set(CMAKE_THREAD_PREFER_PTHREAD TRUE) |
3 |
+ |
set(THREADS_PREFER_PTHREAD_FLAG TRUE) |
4 |
+ |
find_package(Threads REQUIRED) |
5 |
+ |
|
6 |
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../rt) |
7 |
|
|
8 |
|
add_executable(genbeads genbeads.c hermite3.c) |
9 |
|
target_link_libraries(genbeads ${LIB_M}) |
10 |
|
|
11 |
|
add_executable(genbox genbox.c) |
12 |
+ |
target_link_libraries(genbox wfobj rtrad ${LIB_M}) |
13 |
|
|
14 |
|
add_executable(genmarble genmarble.c ../common/random.h) |
15 |
|
target_link_libraries(genmarble ${LIB_M}) |
16 |
|
|
17 |
|
add_executable(gensky gensky.c sun.c) |
18 |
< |
target_link_libraries(gensky ${LIB_M}) |
18 |
> |
target_link_libraries(gensky rtrad ${LIB_M}) |
19 |
|
|
20 |
+ |
add_executable(genssky genssky.c sun.c atmos.c) |
21 |
+ |
target_link_libraries(genssky rtrad ${LIB_M} Threads::Threads) |
22 |
+ |
|
23 |
+ |
add_executable(gensdaymtx gensdaymtx.c sun.c atmos.c) |
24 |
+ |
target_link_libraries(gensdaymtx rtrad ${LIB_M} Threads::Threads) |
25 |
+ |
|
26 |
|
add_executable(gendaylit gendaylit.c sun.c) |
27 |
|
target_link_libraries(gendaylit rtrad ${LIB_M}) |
28 |
|
|
30 |
|
target_link_libraries(gendaymtx rtrad ${LIB_M}) |
31 |
|
|
32 |
|
add_executable(genblinds genblinds.c) |
33 |
< |
target_link_libraries(genblinds ${LIB_M}) |
33 |
> |
target_link_libraries(genblinds rtrad ${LIB_M}) |
34 |
|
|
35 |
|
add_executable(genprism genprism.c) |
36 |
< |
target_link_libraries(genprism ${LIB_M}) |
36 |
> |
target_link_libraries(genprism rtrad ${LIB_M}) |
37 |
|
|
38 |
|
add_executable(xform xform.c) |
39 |
|
target_link_libraries(xform rtrad) |
47 |
|
add_executable(mksource mksource.c) |
48 |
|
target_link_libraries(mksource raycalls radiance rtrad) |
49 |
|
|
50 |
< |
add_executable(genrev genrev.c ) |
50 |
> |
add_executable(genrev genrev.c) |
51 |
|
target_link_libraries(genrev rtrad) |
52 |
|
|
53 |
|
add_executable(gencatenary gencat.c) |
65 |
|
add_executable(genbranch genbranch.c) |
66 |
|
target_link_libraries(genbranch ${LIB_M}) |
67 |
|
|
68 |
< |
install(TARGETS genbox gensky xform genblinds genrev genworm gendaylit gensurf |
69 |
< |
genprism replmarks mkillum mksource genclock gendaymtx |
70 |
< |
DESTINATION bin) |
68 |
> |
install(TARGETS |
69 |
> |
genblinds |
70 |
> |
genbox |
71 |
> |
genclock |
72 |
> |
gendaylit |
73 |
> |
gendaymtx |
74 |
> |
gensdaymtx |
75 |
> |
genprism |
76 |
> |
genrev |
77 |
> |
gensky |
78 |
> |
genssky |
79 |
> |
gensurf |
80 |
> |
genworm |
81 |
> |
mkillum |
82 |
> |
mksource |
83 |
> |
replmarks |
84 |
> |
xform |
85 |
> |
DESTINATION "bin" |
86 |
> |
) |
87 |
|
|
88 |
< |
install(FILES illum.cal rev.cal skybright.cal surf.cal clockface.hex glaze1.cal |
89 |
< |
glaze2.cal perezlum.cal coeff_perez.dat defangle.dat |
90 |
< |
DESTINATION lib) |
88 |
> |
file(COPY |
89 |
> |
clockface.hex |
90 |
> |
glaze1.cal |
91 |
> |
glaze2.cal |
92 |
> |
illum.cal |
93 |
> |
perezlum.cal |
94 |
> |
perezlum_c.cal |
95 |
> |
rev.cal |
96 |
> |
skybright.cal |
97 |
> |
surf.cal |
98 |
> |
mie_ca.dat |
99 |
> |
DESTINATION "${CMAKE_BINARY_DIR}/lib" |
100 |
> |
) |
101 |
|
|
102 |
< |
if (NOT WIN32) |
103 |
< |
install(PROGRAMS glaze.csh DESTINATION bin RENAME glaze) |
104 |
< |
endif() |
102 |
> |
if(NOT WIN32) |
103 |
> |
install(PROGRAMS glaze.csh |
104 |
> |
DESTINATION "bin" |
105 |
> |
RENAME glaze |
106 |
> |
) |
107 |
> |
endif() |