| 1 |
# RCSid $Id$ |
| 2 |
|
| 3 |
add_executable(ies2rad ies2rad.c) |
| 4 |
target_link_libraries(ies2rad rtrad) |
| 5 |
|
| 6 |
add_executable(arch2rad arch2rad.c trans.c) |
| 7 |
target_link_libraries(arch2rad rtrad) |
| 8 |
|
| 9 |
add_executable(nff2rad nff2rad.c) |
| 10 |
|
| 11 |
add_executable(lampcolor lampcolor.c) |
| 12 |
target_link_libraries(lampcolor rtrad) |
| 13 |
|
| 14 |
add_executable(tmesh2rad tmesh2rad.c) |
| 15 |
target_link_libraries(tmesh2rad rtrad) |
| 16 |
|
| 17 |
add_executable(obj2rad obj2rad.c trans.c) |
| 18 |
target_link_libraries(obj2rad rtrad) |
| 19 |
|
| 20 |
add_executable(robjutil robjutil.c) |
| 21 |
target_link_libraries(robjutil wfobj rtrad) |
| 22 |
|
| 23 |
add_executable(mgf2rad mgf2rad.c) |
| 24 |
target_link_libraries(mgf2rad mgf rtrad) |
| 25 |
|
| 26 |
add_executable(rad2mgf rad2mgf.c) |
| 27 |
target_link_libraries(rad2mgf rtrad) |
| 28 |
|
| 29 |
add_executable(mgfilt mgfilt.c) |
| 30 |
target_link_libraries(mgfilt mgf rtrad) |
| 31 |
|
| 32 |
add_executable(mgf2inv mgf2inv.c) |
| 33 |
target_link_libraries(mgf2inv mgf rtrad) |
| 34 |
|
| 35 |
add_executable(3ds2mgf 3ds2mgf.c rayopt3ds.c vect3ds.c) |
| 36 |
target_link_libraries(3ds2mgf rtrad) |
| 37 |
|
| 38 |
if(BUILD_PABOPTO_UTILS) |
| 39 |
add_executable(pabopto2bsdf pabopto2bsdf.c bsdfrep.c bsdfrbf.c bsdfmesh.c bsdftrans.cpp) |
| 40 |
target_link_libraries(pabopto2bsdf rtrad) |
| 41 |
|
| 42 |
#add_executable(pabopto2xyz pabopto2xyz.c) |
| 43 |
#target_link_libraries(pabopto2xyz rtrad) |
| 44 |
|
| 45 |
add_executable(pabopto2rad pabopto2bsdf.c bsdfrep.c bsdfrbf.c bsdfmesh.c bsdftrans.cpp) |
| 46 |
target_link_libraries(pabopto2rad rtrad) |
| 47 |
set_target_properties(pabopto2rad PROPERTIES COMPILE_DEFINITIONS TEST_MAIN) |
| 48 |
endif() |
| 49 |
|
| 50 |
add_executable(bsdf2rad bsdf2rad.c bsdfrep.c bsdfinterp.c) |
| 51 |
target_link_libraries(bsdf2rad rtrad) |
| 52 |
|
| 53 |
add_executable(bsdfquery bsdfquery.c bsdfrep.c bsdfinterp.c) |
| 54 |
target_link_libraries(bsdfquery rtrad) |
| 55 |
|
| 56 |
add_executable(bsdfpeaks bsdfpeaks.c bsdfrep.c bsdfinterp.c) |
| 57 |
target_link_libraries(bsdfpeaks rtrad) |
| 58 |
|
| 59 |
add_executable(bsdf2ttree bsdf2ttree.c bsdfrep.c bsdfinterp.c) |
| 60 |
target_link_libraries(bsdf2ttree rtrad) |
| 61 |
|
| 62 |
add_executable(bsdf2klems bsdf2klems.c bsdfrep.c bsdfinterp.c) |
| 63 |
target_link_libraries(bsdf2klems rtrad) |
| 64 |
|
| 65 |
add_executable(pkgBSDF pkgBSDF.c trans.c) |
| 66 |
target_link_libraries(pkgBSDF rtrad) |
| 67 |
|
| 68 |
add_executable(checkBSDF checkBSDF.c) |
| 69 |
target_link_libraries(checkBSDF rtrad) |
| 70 |
|
| 71 |
add_executable(epw2wea epw2wea.c) |
| 72 |
|
| 73 |
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../meta) |
| 74 |
add_executable(mgf2meta mgf2meta.c) |
| 75 |
target_link_libraries(mgf2meta mgf meta rtrad) |
| 76 |
|
| 77 |
install(TARGETS |
| 78 |
3ds2mgf |
| 79 |
bsdf2klems |
| 80 |
bsdf2rad |
| 81 |
bsdf2ttree |
| 82 |
checkBSDF |
| 83 |
epw2wea |
| 84 |
ies2rad |
| 85 |
lampcolor |
| 86 |
mgf2inv |
| 87 |
mgf2meta |
| 88 |
mgf2rad |
| 89 |
mgfilt |
| 90 |
nff2rad |
| 91 |
obj2rad |
| 92 |
pkgBSDF |
| 93 |
rad2mgf |
| 94 |
robjutil |
| 95 |
tmesh2rad |
| 96 |
RUNTIME DESTINATION "bin" |
| 97 |
) |
| 98 |
|
| 99 |
file(COPY |
| 100 |
bsdf2rad.cal |
| 101 |
lamp.tab |
| 102 |
source.cal |
| 103 |
tilt.cal |
| 104 |
window.cal |
| 105 |
DESTINATION "${CMAKE_BINARY_DIR}/lib" |
| 106 |
) |
| 107 |
|
| 108 |
if(WIN32) |
| 109 |
add_custom_target(optics2rad ALL |
| 110 |
COMMAND pp ${CMAKE_CURRENT_SOURCE_DIR}/optics2rad.pl -o ${CMAKE_CURRENT_SOURCE_DIR}/optics2rad.exe -d |
| 111 |
) |
| 112 |
add_custom_target(iso2klems ALL |
| 113 |
COMMAND pp ${CMAKE_CURRENT_SOURCE_DIR}/iso2klems.pl -o ${CMAKE_CURRENT_SOURCE_DIR}/iso2klems.exe -d |
| 114 |
) |
| 115 |
install(PROGRAMS optics2rad.exe iso2klems.exe |
| 116 |
DESTINATION "bin" |
| 117 |
) |
| 118 |
else() |
| 119 |
install_without_extension( |
| 120 |
optics2rad.pl |
| 121 |
iso2klems.pl |
| 122 |
) |
| 123 |
endif() |
| 124 |
|
| 125 |
if(BUILD_PABOPTO_UTILS) |
| 126 |
install(TARGETS pabopto2bsdf pabopto2rad |
| 127 |
DESTINATION "bin" |
| 128 |
) |
| 129 |
endif() |