ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cv/CMakeLists.txt
Revision: 1.14
Committed: Mon Jan 8 16:51:32 2018 UTC (6 years, 4 months ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: rad5R2
Changes since 1.13: +43 -21 lines
Log Message:
Update to CMake build system from Rob G. and Alex S., adding test cases

File Contents

# User Rev Content
1 greg 1.4 add_executable(ies2rad ies2rad.c)
2     target_link_libraries(ies2rad rtrad)
3    
4 greg 1.1 add_executable(arch2rad arch2rad.c trans.c)
5     target_link_libraries(arch2rad rtrad)
6    
7 greg 1.4 add_executable(nff2rad nff2rad.c)
8 greg 1.1
9     add_executable(lampcolor lampcolor.c)
10     target_link_libraries(lampcolor rtrad)
11    
12 greg 1.4 add_executable(tmesh2rad tmesh2rad.c)
13     target_link_libraries(tmesh2rad rtrad)
14 greg 1.1
15     add_executable(obj2rad obj2rad.c trans.c)
16     target_link_libraries(obj2rad rtrad)
17    
18 greg 1.4 add_executable(mgf2rad mgf2rad.c)
19     target_link_libraries(mgf2rad mgf rtrad)
20 greg 1.2
21 greg 1.1 add_executable(rad2mgf rad2mgf.c)
22     target_link_libraries(rad2mgf rtrad)
23    
24     add_executable(mgfilt mgfilt.c)
25     target_link_libraries(mgfilt mgf rtrad)
26    
27 greg 1.4 add_executable(mgf2inv mgf2inv.c)
28 greg 1.14 target_link_libraries(mgf2inv mgf rtrad)
29 greg 1.4
30 greg 1.1 add_executable(3ds2mgf 3ds2mgf.c rayopt3ds.c vect3ds.c)
31 greg 1.14 target_link_libraries(3ds2mgf rtrad)
32 greg 1.5
33 greg 1.14 if(BUILD_PABOPTO_UTILS)
34 greg 1.7 add_executable(pabopto2bsdf pabopto2bsdf.c bsdfrep.c bsdfrbf.c bsdfmesh.c bsdftrans.cpp)
35 greg 1.14 target_link_libraries(pabopto2bsdf rtrad)
36 greg 1.4
37 greg 1.13 #add_executable(pabopto2xyz pabopto2xyz.c)
38     #target_link_libraries(pabopto2xyz rtrad)
39 greg 1.10
40 greg 1.14 add_executable(pabopto2rad pabopto2bsdf.c bsdfrep.c bsdfrbf.c bsdfmesh.c bsdftrans.cpp)
41 greg 1.5 target_link_libraries(pabopto2rad rtrad)
42 greg 1.8 set_target_properties(pabopto2rad PROPERTIES COMPILE_DEFINITIONS TEST_MAIN)
43 greg 1.5 endif()
44 greg 1.4
45 greg 1.13 add_executable(bsdf2rad bsdf2rad.c bsdfrep.c bsdfinterp.c)
46 greg 1.4 target_link_libraries(bsdf2rad rtrad)
47    
48 greg 1.12 add_executable(bsdfquery bsdfquery.c bsdfrep.c bsdfinterp.c)
49     target_link_libraries(bsdfquery rtrad)
50 greg 1.4
51     add_executable(bsdf2ttree bsdf2ttree.c bsdfrep.c bsdfinterp.c)
52     target_link_libraries(bsdf2ttree rtrad)
53    
54     add_executable(bsdf2klems bsdf2klems.c bsdfrep.c bsdfinterp.c)
55     target_link_libraries(bsdf2klems rtrad)
56    
57     add_executable(pkgBSDF pkgBSDF.c trans.c)
58     target_link_libraries(pkgBSDF rtrad)
59 greg 1.1
60 greg 1.3 add_executable(epw2wea epw2wea.c)
61    
62 greg 1.4 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../meta)
63     add_executable(mgf2meta mgf2meta.c)
64     target_link_libraries(mgf2meta mgf meta rtrad)
65    
66 greg 1.14 install(TARGETS
67     3ds2mgf
68     bsdf2klems
69     bsdf2ttree
70     epw2wea
71     ies2rad
72     lampcolor
73     mgf2inv
74     mgf2meta
75     mgf2rad
76     mgfilt
77     nff2rad
78     obj2rad
79     pkgBSDF
80     rad2mgf
81     tmesh2rad
82     RUNTIME DESTINATION "bin"
83     )
84    
85     file(COPY
86     bsdf2rad.cal
87     lamp.tab
88     source.cal
89     tilt.cal
90     window.cal
91     DESTINATION "${CMAKE_BINARY_DIR}/lib"
92     )
93    
94     if(NOT WIN32)
95     install(PROGRAMS optics2rad.csh
96     DESTINATION "bin"
97     RENAME optics2rad
98     )
99     endif()
100 greg 1.13
101 greg 1.14 if(BUILD_PABOPTO_UTILS)
102     install(TARGETS pabopto2bsdf pabopto2rad
103     DESTINATION "bin"
104     )
105 greg 1.3 endif()