| 1 |
greg |
2.12 |
# 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 |
greg |
2.1 |
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 |
greg |
2.10 |
target_link_libraries(genbox wfobj rtrad ${LIB_M}) |
| 13 |
greg |
2.1 |
|
| 14 |
greg |
2.3 |
add_executable(genmarble genmarble.c ../common/random.h) |
| 15 |
|
|
target_link_libraries(genmarble ${LIB_M}) |
| 16 |
greg |
2.1 |
|
| 17 |
greg |
2.3 |
add_executable(gensky gensky.c sun.c) |
| 18 |
greg |
2.7 |
target_link_libraries(gensky rtrad ${LIB_M}) |
| 19 |
greg |
2.1 |
|
| 20 |
greg |
2.13 |
add_executable(genssky genssky.c sun.c atmos.c) |
| 21 |
|
|
target_link_libraries(genssky rtrad ${LIB_M} Threads::Threads) |
| 22 |
greg |
2.12 |
|
| 23 |
greg |
2.13 |
add_executable(gensdaymtx gensdaymtx.c sun.c atmos.c) |
| 24 |
|
|
target_link_libraries(gensdaymtx rtrad ${LIB_M} Threads::Threads) |
| 25 |
greg |
2.11 |
|
| 26 |
greg |
2.3 |
add_executable(gendaylit gendaylit.c sun.c) |
| 27 |
|
|
target_link_libraries(gendaylit rtrad ${LIB_M}) |
| 28 |
greg |
2.1 |
|
| 29 |
greg |
2.3 |
add_executable(gendaymtx gendaymtx.c sun.c) |
| 30 |
|
|
target_link_libraries(gendaymtx rtrad ${LIB_M}) |
| 31 |
greg |
2.1 |
|
| 32 |
greg |
2.3 |
add_executable(genblinds genblinds.c) |
| 33 |
greg |
2.7 |
target_link_libraries(genblinds rtrad ${LIB_M}) |
| 34 |
greg |
2.1 |
|
| 35 |
|
|
add_executable(genprism genprism.c) |
| 36 |
greg |
2.7 |
target_link_libraries(genprism rtrad ${LIB_M}) |
| 37 |
greg |
2.1 |
|
| 38 |
greg |
2.3 |
add_executable(xform xform.c) |
| 39 |
|
|
target_link_libraries(xform rtrad) |
| 40 |
|
|
|
| 41 |
|
|
add_executable(replmarks replmarks.c) |
| 42 |
|
|
target_link_libraries(replmarks rtrad) |
| 43 |
|
|
|
| 44 |
|
|
add_executable(mkillum mkillum.c mkillum2.c mkillum3.c) |
| 45 |
|
|
target_link_libraries(mkillum raycalls radiance rtrad) |
| 46 |
|
|
|
| 47 |
|
|
add_executable(mksource mksource.c) |
| 48 |
|
|
target_link_libraries(mksource raycalls radiance rtrad) |
| 49 |
|
|
|
| 50 |
greg |
2.5 |
add_executable(genrev genrev.c) |
| 51 |
greg |
2.1 |
target_link_libraries(genrev rtrad) |
| 52 |
|
|
|
| 53 |
greg |
2.3 |
add_executable(gencatenary gencat.c) |
| 54 |
|
|
target_link_libraries(gencatenary rtrad) |
| 55 |
greg |
2.1 |
|
| 56 |
|
|
add_executable(genworm genworm.c) |
| 57 |
|
|
target_link_libraries(genworm rtrad) |
| 58 |
|
|
|
| 59 |
greg |
2.3 |
add_executable(gensurf gensurf.c) |
| 60 |
|
|
target_link_libraries(gensurf rtrad) |
| 61 |
greg |
2.1 |
|
| 62 |
greg |
2.3 |
add_executable(genclock genclock.c) |
| 63 |
|
|
target_link_libraries(genclock ${LIB_M}) |
| 64 |
greg |
2.1 |
|
| 65 |
greg |
2.3 |
add_executable(genbranch genbranch.c) |
| 66 |
|
|
target_link_libraries(genbranch ${LIB_M}) |
| 67 |
greg |
2.1 |
|
| 68 |
greg |
2.5 |
install(TARGETS |
| 69 |
|
|
genblinds |
| 70 |
|
|
genbox |
| 71 |
|
|
genclock |
| 72 |
|
|
gendaylit |
| 73 |
|
|
gendaymtx |
| 74 |
|
|
genprism |
| 75 |
|
|
genrev |
| 76 |
|
|
gensky |
| 77 |
greg |
2.11 |
genssky |
| 78 |
greg |
2.5 |
gensurf |
| 79 |
|
|
genworm |
| 80 |
|
|
mkillum |
| 81 |
|
|
mksource |
| 82 |
|
|
replmarks |
| 83 |
|
|
xform |
| 84 |
|
|
DESTINATION "bin" |
| 85 |
|
|
) |
| 86 |
|
|
|
| 87 |
|
|
file(COPY |
| 88 |
|
|
clockface.hex |
| 89 |
|
|
glaze1.cal |
| 90 |
|
|
glaze2.cal |
| 91 |
|
|
illum.cal |
| 92 |
|
|
perezlum.cal |
| 93 |
greg |
2.6 |
perezlum_c.cal |
| 94 |
greg |
2.5 |
rev.cal |
| 95 |
|
|
skybright.cal |
| 96 |
|
|
surf.cal |
| 97 |
greg |
2.11 |
mie_ca.dat |
| 98 |
greg |
2.5 |
DESTINATION "${CMAKE_BINARY_DIR}/lib" |
| 99 |
|
|
) |
| 100 |
|
|
|
| 101 |
|
|
if(NOT WIN32) |
| 102 |
|
|
install(PROGRAMS glaze.csh |
| 103 |
|
|
DESTINATION "bin" |
| 104 |
|
|
RENAME glaze |
| 105 |
|
|
) |
| 106 |
|
|
endif() |