ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cv/CMakeLists.txt
(Generate patch)

Comparing ray/src/cv/CMakeLists.txt (file contents):
Revision 1.13 by greg, Sat Aug 19 14:16:15 2017 UTC vs.
Revision 1.17 by greg, Wed Aug 19 04:33:20 2020 UTC

# Line 15 | Line 15 | target_link_libraries(tmesh2rad rtrad)
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  
# Line 25 | Line 28 | add_executable(mgfilt mgfilt.c)
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)
# Line 65 | Line 66 | include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../met
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 >  bsdf2ttree
73 >  epw2wea
74 >  ies2rad
75 >  lampcolor
76 >  mgf2inv
77 >  mgf2meta
78 >  mgf2rad
79 >  mgfilt
80 >  nff2rad
81 >  obj2rad
82 >  pkgBSDF
83 >  rad2mgf
84 >  tmesh2rad
85 >  RUNTIME DESTINATION "bin"
86 > )
87  
88 < INSTALL(FILES source.cal tilt.cal lamp.tab window.cal bsdf2rad.cal
89 <  DESTINATION lib)
88 > file(COPY
89 >  bsdf2rad.cal
90 >  lamp.tab
91 >  source.cal
92 >  tilt.cal
93 >  window.cal
94 >  DESTINATION "${CMAKE_BINARY_DIR}/lib"
95 > )
96  
97 < if (NOT WIN32)
98 <  INSTALL(PROGRAMS optics2rad.csh DESTINATION bin RENAME optics2rad)
99 <  endif()
97 > if(WIN32)
98 >  add_custom_target(optics2rad ALL
99 >    COMMAND pp ${CMAKE_CURRENT_SOURCE_DIR}/optics2rad.pl -o ${CMAKE_CURRENT_SOURCE_DIR}/optics2rad.exe -d
100 >  )
101 >  install(PROGRAMS optics2rad.exe
102 >    DESTINATION "bin"
103 >  )
104 > else()
105 >  install(PROGRAMS optics2rad.pl
106 >    DESTINATION "bin"
107 >    RENAME optics2rad
108 >  )
109 > endif()
110  
111 < if (BUILD_PABOPTO_UTILS)
112 <  INSTALL(TARGETS pabopto2rad pabopto2bsdf DESTINATION bin)
111 > if(BUILD_PABOPTO_UTILS)
112 >  install(TARGETS pabopto2bsdf pabopto2rad
113 >    DESTINATION "bin"
114 >  )
115   endif()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines