| 1 |
greg |
1.23 |
# RCSid $Id$
|
| 2 |
|
|
|
| 3 |
greg |
1.4 |
add_executable(ies2rad ies2rad.c)
|
| 4 |
|
|
target_link_libraries(ies2rad rtrad)
|
| 5 |
|
|
|
| 6 |
greg |
1.1 |
add_executable(arch2rad arch2rad.c trans.c)
|
| 7 |
|
|
target_link_libraries(arch2rad rtrad)
|
| 8 |
|
|
|
| 9 |
greg |
1.4 |
add_executable(nff2rad nff2rad.c)
|
| 10 |
greg |
1.1 |
|
| 11 |
|
|
add_executable(lampcolor lampcolor.c)
|
| 12 |
|
|
target_link_libraries(lampcolor rtrad)
|
| 13 |
|
|
|
| 14 |
greg |
1.4 |
add_executable(tmesh2rad tmesh2rad.c)
|
| 15 |
|
|
target_link_libraries(tmesh2rad rtrad)
|
| 16 |
greg |
1.1 |
|
| 17 |
|
|
add_executable(obj2rad obj2rad.c trans.c)
|
| 18 |
|
|
target_link_libraries(obj2rad rtrad)
|
| 19 |
|
|
|
| 20 |
greg |
1.15 |
add_executable(robjutil robjutil.c)
|
| 21 |
|
|
target_link_libraries(robjutil wfobj rtrad)
|
| 22 |
|
|
|
| 23 |
greg |
1.4 |
add_executable(mgf2rad mgf2rad.c)
|
| 24 |
|
|
target_link_libraries(mgf2rad mgf rtrad)
|
| 25 |
greg |
1.2 |
|
| 26 |
greg |
1.1 |
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 |
greg |
1.4 |
add_executable(mgf2inv mgf2inv.c)
|
| 33 |
greg |
1.14 |
target_link_libraries(mgf2inv mgf rtrad)
|
| 34 |
greg |
1.4 |
|
| 35 |
greg |
1.1 |
add_executable(3ds2mgf 3ds2mgf.c rayopt3ds.c vect3ds.c)
|
| 36 |
greg |
1.14 |
target_link_libraries(3ds2mgf rtrad)
|
| 37 |
greg |
1.5 |
|
| 38 |
greg |
1.14 |
if(BUILD_PABOPTO_UTILS)
|
| 39 |
greg |
1.7 |
add_executable(pabopto2bsdf pabopto2bsdf.c bsdfrep.c bsdfrbf.c bsdfmesh.c bsdftrans.cpp)
|
| 40 |
greg |
1.14 |
target_link_libraries(pabopto2bsdf rtrad)
|
| 41 |
greg |
1.4 |
|
| 42 |
greg |
1.13 |
#add_executable(pabopto2xyz pabopto2xyz.c)
|
| 43 |
|
|
#target_link_libraries(pabopto2xyz rtrad)
|
| 44 |
greg |
1.10 |
|
| 45 |
greg |
1.14 |
add_executable(pabopto2rad pabopto2bsdf.c bsdfrep.c bsdfrbf.c bsdfmesh.c bsdftrans.cpp)
|
| 46 |
greg |
1.5 |
target_link_libraries(pabopto2rad rtrad)
|
| 47 |
greg |
1.8 |
set_target_properties(pabopto2rad PROPERTIES COMPILE_DEFINITIONS TEST_MAIN)
|
| 48 |
greg |
1.5 |
endif()
|
| 49 |
greg |
1.4 |
|
| 50 |
greg |
1.13 |
add_executable(bsdf2rad bsdf2rad.c bsdfrep.c bsdfinterp.c)
|
| 51 |
greg |
1.4 |
target_link_libraries(bsdf2rad rtrad)
|
| 52 |
|
|
|
| 53 |
greg |
1.12 |
add_executable(bsdfquery bsdfquery.c bsdfrep.c bsdfinterp.c)
|
| 54 |
|
|
target_link_libraries(bsdfquery rtrad)
|
| 55 |
greg |
1.4 |
|
| 56 |
greg |
1.22 |
add_executable(bsdfpeaks bsdfpeaks.c bsdfrep.c bsdfinterp.c)
|
| 57 |
|
|
target_link_libraries(bsdfpeaks rtrad)
|
| 58 |
|
|
|
| 59 |
greg |
1.4 |
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 |
greg |
1.1 |
|
| 68 |
greg |
1.20 |
add_executable(checkBSDF checkBSDF.c)
|
| 69 |
|
|
target_link_libraries(checkBSDF rtrad)
|
| 70 |
|
|
|
| 71 |
greg |
1.3 |
add_executable(epw2wea epw2wea.c)
|
| 72 |
|
|
|
| 73 |
greg |
1.4 |
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../meta)
|
| 74 |
|
|
add_executable(mgf2meta mgf2meta.c)
|
| 75 |
|
|
target_link_libraries(mgf2meta mgf meta rtrad)
|
| 76 |
|
|
|
| 77 |
greg |
1.14 |
install(TARGETS
|
| 78 |
|
|
3ds2mgf
|
| 79 |
|
|
bsdf2klems
|
| 80 |
greg |
1.18 |
bsdf2rad
|
| 81 |
greg |
1.14 |
bsdf2ttree
|
| 82 |
greg |
1.20 |
checkBSDF
|
| 83 |
greg |
1.14 |
epw2wea
|
| 84 |
|
|
ies2rad
|
| 85 |
|
|
lampcolor
|
| 86 |
|
|
mgf2inv
|
| 87 |
|
|
mgf2meta
|
| 88 |
|
|
mgf2rad
|
| 89 |
|
|
mgfilt
|
| 90 |
|
|
nff2rad
|
| 91 |
|
|
obj2rad
|
| 92 |
|
|
pkgBSDF
|
| 93 |
|
|
rad2mgf
|
| 94 |
greg |
1.19 |
robjutil
|
| 95 |
greg |
1.14 |
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 |
greg |
1.16 |
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 |
greg |
1.17 |
)
|
| 112 |
greg |
1.21 |
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 |
greg |
1.16 |
DESTINATION "bin"
|
| 117 |
|
|
)
|
| 118 |
|
|
else()
|
| 119 |
greg |
1.21 |
install_without_extension(
|
| 120 |
|
|
optics2rad.pl
|
| 121 |
|
|
iso2klems.pl
|
| 122 |
greg |
1.14 |
)
|
| 123 |
|
|
endif()
|
| 124 |
greg |
1.13 |
|
| 125 |
greg |
1.14 |
if(BUILD_PABOPTO_UTILS)
|
| 126 |
|
|
install(TARGETS pabopto2bsdf pabopto2rad
|
| 127 |
|
|
DESTINATION "bin"
|
| 128 |
|
|
)
|
| 129 |
greg |
1.3 |
endif()
|