1 |
greg |
2.19 |
# RCSid $Id$ |
2 |
|
|
|
3 |
greg |
2.12 |
# Locate the threads package |
4 |
|
|
set(CMAKE_THREAD_PREFER_PTHREAD TRUE) |
5 |
|
|
set(THREADS_PREFER_PTHREAD_FLAG TRUE) |
6 |
|
|
find_package(Threads REQUIRED) |
7 |
|
|
|
8 |
greg |
2.1 |
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../rt) |
9 |
|
|
|
10 |
|
|
add_executable(genbeads genbeads.c hermite3.c) |
11 |
|
|
target_link_libraries(genbeads ${LIB_M}) |
12 |
|
|
|
13 |
|
|
add_executable(genbox genbox.c) |
14 |
greg |
2.10 |
target_link_libraries(genbox wfobj rtrad ${LIB_M}) |
15 |
greg |
2.1 |
|
16 |
greg |
2.3 |
add_executable(genmarble genmarble.c ../common/random.h) |
17 |
|
|
target_link_libraries(genmarble ${LIB_M}) |
18 |
greg |
2.1 |
|
19 |
greg |
2.17 |
add_executable(genglaze genglaze.c ../common/data.h) |
20 |
greg |
2.18 |
target_link_libraries(genglaze rtrad ${LIB_M}) |
21 |
greg |
2.17 |
|
22 |
greg |
2.3 |
add_executable(gensky gensky.c sun.c) |
23 |
greg |
2.7 |
target_link_libraries(gensky rtrad ${LIB_M}) |
24 |
greg |
2.1 |
|
25 |
greg |
2.13 |
add_executable(genssky genssky.c sun.c atmos.c) |
26 |
|
|
target_link_libraries(genssky rtrad ${LIB_M} Threads::Threads) |
27 |
greg |
2.12 |
|
28 |
greg |
2.16 |
add_executable(gensdaymtx gensdaymtx.c sun.c atmos.c loadEPW.c) |
29 |
greg |
2.13 |
target_link_libraries(gensdaymtx rtrad ${LIB_M} Threads::Threads) |
30 |
greg |
2.11 |
|
31 |
greg |
2.3 |
add_executable(gendaylit gendaylit.c sun.c) |
32 |
|
|
target_link_libraries(gendaylit rtrad ${LIB_M}) |
33 |
greg |
2.1 |
|
34 |
greg |
2.15 |
add_executable(gendaymtx gendaymtx.c sun.c loadEPW.c) |
35 |
greg |
2.3 |
target_link_libraries(gendaymtx rtrad ${LIB_M}) |
36 |
greg |
2.1 |
|
37 |
greg |
2.3 |
add_executable(genblinds genblinds.c) |
38 |
greg |
2.7 |
target_link_libraries(genblinds rtrad ${LIB_M}) |
39 |
greg |
2.1 |
|
40 |
|
|
add_executable(genprism genprism.c) |
41 |
greg |
2.7 |
target_link_libraries(genprism rtrad ${LIB_M}) |
42 |
greg |
2.1 |
|
43 |
greg |
2.3 |
add_executable(xform xform.c) |
44 |
|
|
target_link_libraries(xform rtrad) |
45 |
|
|
|
46 |
|
|
add_executable(replmarks replmarks.c) |
47 |
|
|
target_link_libraries(replmarks rtrad) |
48 |
|
|
|
49 |
|
|
add_executable(mkillum mkillum.c mkillum2.c mkillum3.c) |
50 |
|
|
target_link_libraries(mkillum raycalls radiance rtrad) |
51 |
|
|
|
52 |
|
|
add_executable(mksource mksource.c) |
53 |
|
|
target_link_libraries(mksource raycalls radiance rtrad) |
54 |
|
|
|
55 |
greg |
2.5 |
add_executable(genrev genrev.c) |
56 |
greg |
2.1 |
target_link_libraries(genrev rtrad) |
57 |
|
|
|
58 |
greg |
2.3 |
add_executable(gencatenary gencat.c) |
59 |
|
|
target_link_libraries(gencatenary rtrad) |
60 |
greg |
2.1 |
|
61 |
|
|
add_executable(genworm genworm.c) |
62 |
|
|
target_link_libraries(genworm rtrad) |
63 |
|
|
|
64 |
greg |
2.3 |
add_executable(gensurf gensurf.c) |
65 |
|
|
target_link_libraries(gensurf rtrad) |
66 |
greg |
2.1 |
|
67 |
greg |
2.3 |
add_executable(genclock genclock.c) |
68 |
|
|
target_link_libraries(genclock ${LIB_M}) |
69 |
greg |
2.1 |
|
70 |
greg |
2.3 |
add_executable(genbranch genbranch.c) |
71 |
|
|
target_link_libraries(genbranch ${LIB_M}) |
72 |
greg |
2.1 |
|
73 |
greg |
2.5 |
install(TARGETS |
74 |
|
|
genblinds |
75 |
|
|
genbox |
76 |
|
|
genclock |
77 |
|
|
gendaylit |
78 |
|
|
gendaymtx |
79 |
greg |
2.17 |
genglaze |
80 |
greg |
2.14 |
gensdaymtx |
81 |
greg |
2.5 |
genprism |
82 |
|
|
genrev |
83 |
|
|
gensky |
84 |
greg |
2.11 |
genssky |
85 |
greg |
2.5 |
gensurf |
86 |
|
|
genworm |
87 |
|
|
mkillum |
88 |
|
|
mksource |
89 |
|
|
replmarks |
90 |
|
|
xform |
91 |
|
|
DESTINATION "bin" |
92 |
|
|
) |
93 |
|
|
|
94 |
|
|
file(COPY |
95 |
|
|
clockface.hex |
96 |
|
|
glaze1.cal |
97 |
|
|
glaze2.cal |
98 |
|
|
illum.cal |
99 |
|
|
perezlum.cal |
100 |
greg |
2.6 |
perezlum_c.cal |
101 |
greg |
2.5 |
rev.cal |
102 |
|
|
skybright.cal |
103 |
|
|
surf.cal |
104 |
greg |
2.11 |
mie_ca.dat |
105 |
greg |
2.5 |
DESTINATION "${CMAKE_BINARY_DIR}/lib" |
106 |
|
|
) |
107 |
|
|
|
108 |
|
|
if(NOT WIN32) |
109 |
|
|
install(PROGRAMS glaze.csh |
110 |
|
|
DESTINATION "bin" |
111 |
|
|
RENAME glaze |
112 |
|
|
) |
113 |
|
|
endif() |