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 (NOT WIN32) |
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) |
39 |
|
|
40 |
< |
add_executable(pabopto2bsdf pabopto2bsdf.c bsdfrep.c bsdfrbf.c bsdfmesh.c) |
41 |
< |
target_link_libraries(pabopto2bsdf rtrad) |
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) |
43 |
> |
add_executable(pabopto2rad pabopto2bsdf.c bsdfrep.c bsdfrbf.c bsdfmesh.c bsdftrans.cpp) |
44 |
|
target_link_libraries(pabopto2rad rtrad) |
45 |
< |
|
45 |
> |
set_target_properties(pabopto2rad PROPERTIES COMPILE_DEFINITIONS TEST_MAIN) |
46 |
|
endif() |
47 |
|
|
48 |
< |
add_executable(bsdf2rad bsdf2rad.c bsdfrep.c bsdfinterp.c) |
48 |
> |
add_executable(bsdf2rad bsdf2rad.c bsdfrep.c bsdfinterp.c) |
49 |
|
target_link_libraries(bsdf2rad rtrad) |
50 |
|
|
51 |
|
add_executable(bsdfquery bsdfquery.c bsdfrep.c bsdfinterp.c) |
66 |
|
add_executable(mgf2meta mgf2meta.c) |
67 |
|
target_link_libraries(mgf2meta mgf meta rtrad) |
68 |
|
|
69 |
< |
install(TARGETS |
70 |
< |
ies2rad nff2rad lampcolor tmesh2rad obj2rad |
71 |
< |
mgf2rad rad2mgf mgf2meta mgfilt mgf2inv 3ds2mgf |
72 |
< |
bsdf2ttree bsdf2klems pkgBSDF epw2wea |
73 |
< |
RUNTIME DESTINATION bin) |
69 |
> |
install(TARGETS |
70 |
> |
3ds2mgf |
71 |
> |
bsdf2klems |
72 |
> |
bsdf2rad |
73 |
> |
bsdf2ttree |
74 |
> |
epw2wea |
75 |
> |
ies2rad |
76 |
> |
lampcolor |
77 |
> |
mgf2inv |
78 |
> |
mgf2meta |
79 |
> |
mgf2rad |
80 |
> |
mgfilt |
81 |
> |
nff2rad |
82 |
> |
obj2rad |
83 |
> |
pkgBSDF |
84 |
> |
rad2mgf |
85 |
> |
robjutil |
86 |
> |
tmesh2rad |
87 |
> |
RUNTIME DESTINATION "bin" |
88 |
> |
) |
89 |
|
|
90 |
< |
INSTALL(FILES source.cal tilt.cal lamp.tab window.cal |
91 |
< |
DESTINATION lib) |
90 |
> |
file(COPY |
91 |
> |
bsdf2rad.cal |
92 |
> |
lamp.tab |
93 |
> |
source.cal |
94 |
> |
tilt.cal |
95 |
> |
window.cal |
96 |
> |
DESTINATION "${CMAKE_BINARY_DIR}/lib" |
97 |
> |
) |
98 |
|
|
99 |
< |
if (NOT WIN32) |
100 |
< |
INSTALL(PROGRAMS optics2rad.csh DESTINATION bin RENAME optics2rad) |
101 |
< |
INSTALL(TARGETS pabopto2rad pabopto2bsdf DESTINATION bin) |
99 |
> |
if(WIN32) |
100 |
> |
add_custom_target(optics2rad ALL |
101 |
> |
COMMAND pp ${CMAKE_CURRENT_SOURCE_DIR}/optics2rad.pl -o ${CMAKE_CURRENT_SOURCE_DIR}/optics2rad.exe -d |
102 |
> |
) |
103 |
> |
install(PROGRAMS optics2rad.exe |
104 |
> |
DESTINATION "bin" |
105 |
> |
) |
106 |
> |
else() |
107 |
> |
install(PROGRAMS optics2rad.pl |
108 |
> |
DESTINATION "bin" |
109 |
> |
RENAME optics2rad |
110 |
> |
) |
111 |
> |
endif() |
112 |
> |
|
113 |
> |
if(BUILD_PABOPTO_UTILS) |
114 |
> |
install(TARGETS pabopto2bsdf pabopto2rad |
115 |
> |
DESTINATION "bin" |
116 |
> |
) |
117 |
|
endif() |