1 |
+ |
# RCSid $Id$ |
2 |
+ |
|
3 |
|
add_executable(ies2rad ies2rad.c) |
4 |
|
target_link_libraries(ies2rad rtrad) |
5 |
|
|
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 |
|
|
30 |
|
target_link_libraries(mgfilt mgf rtrad) |
31 |
|
|
32 |
|
add_executable(mgf2inv mgf2inv.c) |
33 |
< |
target_link_libraries(mgf2inv mgf rtrad) |
33 |
> |
target_link_libraries(mgf2inv mgf rtrad) |
34 |
|
|
35 |
|
add_executable(3ds2mgf 3ds2mgf.c rayopt3ds.c vect3ds.c) |
36 |
< |
target_link_libraries(3ds2mgf rtrad) |
36 |
> |
target_link_libraries(3ds2mgf rtrad) |
37 |
|
|
38 |
< |
add_executable(pabopto2bsdf pabopto2bsdf.c bsdfrep.c bsdfrbf.c bsdfmesh.c) |
39 |
< |
target_link_libraries(pabopto2bsdf rtrad) |
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(pabopto2rad pabopto2bsdf.c bsdfrep.c bsdfrbf.c bsdfmesh.c) |
43 |
< |
target_link_libraries(pabopto2rad rtrad) |
42 |
> |
#add_executable(pabopto2xyz pabopto2xyz.c) |
43 |
> |
#target_link_libraries(pabopto2xyz rtrad) |
44 |
|
|
45 |
< |
add_executable(bsdf2rad bsdf2rad.c bsdfrep.c bsdfinterp.c) |
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 |
|
|
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 |
< |
ies2rad nff2rad lampcolor tmesh2rad obj2rad |
79 |
< |
mgf2rad rad2mgf mgf2meta mgfilt mgf2inv 3ds2mgf |
80 |
< |
pabopto2bsdf bsdf2ttree bsdf2klems pkgBSDF epw2wea |
81 |
< |
RUNTIME DESTINATION bin) |
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 |
< |
INSTALL(FILES source.cal tilt.cal lamp.tab window.cal |
100 |
< |
DESTINATION lib) |
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 (NOT WIN32) |
109 |
< |
INSTALL(PROGRAMS optics2rad.csh DESTINATION bin RENAME optics2rad) |
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() |