15 |
|
add_executable(obj2rad obj2rad.c trans.c) |
16 |
|
target_link_libraries(obj2rad rtrad) |
17 |
|
|
18 |
+ |
add_executable(robjutil robjutil.c) |
19 |
+ |
target_link_libraries(robjutil wfobj rtrad) |
20 |
+ |
|
21 |
|
add_executable(mgf2rad mgf2rad.c) |
22 |
|
target_link_libraries(mgf2rad mgf rtrad) |
23 |
|
|
28 |
|
target_link_libraries(mgfilt mgf rtrad) |
29 |
|
|
30 |
|
add_executable(mgf2inv mgf2inv.c) |
31 |
< |
target_link_libraries(mgf2inv mgf rtrad) |
31 |
> |
target_link_libraries(mgf2inv mgf rtrad) |
32 |
|
|
33 |
|
add_executable(3ds2mgf 3ds2mgf.c rayopt3ds.c vect3ds.c) |
34 |
< |
target_link_libraries(3ds2mgf rtrad) |
34 |
> |
target_link_libraries(3ds2mgf rtrad) |
35 |
|
|
36 |
< |
if (BUILD_PABOPTO_UTILS) |
34 |
< |
|
36 |
> |
if(BUILD_PABOPTO_UTILS) |
37 |
|
add_executable(pabopto2bsdf pabopto2bsdf.c bsdfrep.c bsdfrbf.c bsdfmesh.c bsdftrans.cpp) |
38 |
< |
target_link_libraries(pabopto2bsdf rtrad) |
38 |
> |
target_link_libraries(pabopto2bsdf rtrad) |
39 |
|
|
40 |
|
#add_executable(pabopto2xyz pabopto2xyz.c) |
41 |
|
#target_link_libraries(pabopto2xyz rtrad) |
42 |
|
|
43 |
< |
add_executable(pabopto2rad pabopto2bsdf.c bsdfrep.c bsdfrbf.c bsdfmesh.c bsdftrans.cpp) |
43 |
> |
add_executable(pabopto2rad pabopto2bsdf.c bsdfrep.c bsdfrbf.c bsdfmesh.c bsdftrans.cpp) |
44 |
|
target_link_libraries(pabopto2rad rtrad) |
45 |
|
set_target_properties(pabopto2rad PROPERTIES COMPILE_DEFINITIONS TEST_MAIN) |
44 |
– |
|
46 |
|
endif() |
47 |
|
|
48 |
|
add_executable(bsdf2rad bsdf2rad.c bsdfrep.c bsdfinterp.c) |
60 |
|
add_executable(pkgBSDF pkgBSDF.c trans.c) |
61 |
|
target_link_libraries(pkgBSDF rtrad) |
62 |
|
|
63 |
+ |
add_executable(checkBSDF checkBSDF.c) |
64 |
+ |
target_link_libraries(checkBSDF rtrad) |
65 |
+ |
|
66 |
|
add_executable(epw2wea epw2wea.c) |
67 |
|
|
68 |
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../meta) |
69 |
|
add_executable(mgf2meta mgf2meta.c) |
70 |
|
target_link_libraries(mgf2meta mgf meta rtrad) |
71 |
|
|
72 |
< |
install(TARGETS |
73 |
< |
ies2rad nff2rad lampcolor tmesh2rad obj2rad |
74 |
< |
mgf2rad rad2mgf mgf2meta mgfilt mgf2inv 3ds2mgf |
75 |
< |
bsdf2ttree bsdf2klems pkgBSDF epw2wea |
76 |
< |
RUNTIME DESTINATION bin) |
72 |
> |
install(TARGETS |
73 |
> |
3ds2mgf |
74 |
> |
bsdf2klems |
75 |
> |
bsdf2rad |
76 |
> |
bsdf2ttree |
77 |
> |
checkBSDF |
78 |
> |
epw2wea |
79 |
> |
ies2rad |
80 |
> |
lampcolor |
81 |
> |
mgf2inv |
82 |
> |
mgf2meta |
83 |
> |
mgf2rad |
84 |
> |
mgfilt |
85 |
> |
nff2rad |
86 |
> |
obj2rad |
87 |
> |
pkgBSDF |
88 |
> |
rad2mgf |
89 |
> |
robjutil |
90 |
> |
tmesh2rad |
91 |
> |
RUNTIME DESTINATION "bin" |
92 |
> |
) |
93 |
|
|
94 |
< |
INSTALL(FILES source.cal tilt.cal lamp.tab window.cal bsdf2rad.cal |
95 |
< |
DESTINATION lib) |
94 |
> |
file(COPY |
95 |
> |
bsdf2rad.cal |
96 |
> |
lamp.tab |
97 |
> |
source.cal |
98 |
> |
tilt.cal |
99 |
> |
window.cal |
100 |
> |
DESTINATION "${CMAKE_BINARY_DIR}/lib" |
101 |
> |
) |
102 |
|
|
103 |
< |
if (NOT WIN32) |
104 |
< |
INSTALL(PROGRAMS optics2rad.csh DESTINATION bin RENAME optics2rad) |
105 |
< |
endif() |
103 |
> |
if(WIN32) |
104 |
> |
add_custom_target(optics2rad ALL |
105 |
> |
COMMAND pp ${CMAKE_CURRENT_SOURCE_DIR}/optics2rad.pl -o ${CMAKE_CURRENT_SOURCE_DIR}/optics2rad.exe -d |
106 |
> |
) |
107 |
> |
add_custom_target(iso2klems ALL |
108 |
> |
COMMAND pp ${CMAKE_CURRENT_SOURCE_DIR}/iso2klems.pl -o ${CMAKE_CURRENT_SOURCE_DIR}/iso2klems.exe -d |
109 |
> |
) |
110 |
> |
install(PROGRAMS optics2rad.exe iso2klems.exe |
111 |
> |
DESTINATION "bin" |
112 |
> |
) |
113 |
> |
else() |
114 |
> |
install_without_extension( |
115 |
> |
optics2rad.pl |
116 |
> |
iso2klems.pl |
117 |
> |
) |
118 |
> |
endif() |
119 |
|
|
120 |
< |
if (BUILD_PABOPTO_UTILS) |
121 |
< |
INSTALL(TARGETS pabopto2rad pabopto2bsdf DESTINATION bin) |
120 |
> |
if(BUILD_PABOPTO_UTILS) |
121 |
> |
install(TARGETS pabopto2bsdf pabopto2rad |
122 |
> |
DESTINATION "bin" |
123 |
> |
) |
124 |
|
endif() |