ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/meta/CMakeLists.txt
Revision: 1.4
Committed: Thu Jul 24 01:24:01 2025 UTC (2 weeks, 5 days ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -0 lines
Log Message:
chore: Added version string to all CMakeLists.txt files

File Contents

# Content
1 # RCSid $Id$
2
3 set(common_src mfio.c misc.c syscalls.c)
4
5 add_executable(bgraph bgraph.c mgvars.c mgraph.c)
6 target_link_libraries(bgraph meta rtrad)
7
8 add_executable(cv cv.c mfio.c cvhfio.c syscalls.c misc.c)
9 target_link_libraries(cv rtrad)
10
11 add_executable(dgraph dgraph.c cgraph.c mgvars.c)
12 target_link_libraries(dgraph rtrad)
13
14 add_executable(gcomp gcomp.c gcalc.c mgvars.c)
15 target_link_libraries(gcomp rtrad)
16
17 add_executable(igraph igraph.c mgvars.c mgraph.c gcalc.c cgraph.c)
18 target_link_libraries(igraph meta rtrad)
19
20 add_library(meta metacalls.c primout.c progname.c ${common_src})
21
22 add_executable(meta2bmp meta2bmp.c rplot.c plot.c palloc.c ${common_src})
23 target_link_libraries(meta2bmp rtrad)
24
25 add_executable(meta2tga meta2tga.c rplot.c plot.c palloc.c ${common_src})
26 target_link_libraries(meta2tga rtrad)
27
28 add_executable(mtext mtext.c primout.c ${common_src})
29 target_link_libraries(mtext rtrad)
30
31 add_executable(pexpand pexpand.c expand.c segment.c palloc.c ${common_src})
32 target_link_libraries(pexpand rtrad)
33
34 add_executable(plot4 plot4.c primout.c ${common_src})
35 target_link_libraries(plot4 rtrad)
36
37 add_executable(plotin plotin.c primout.c ${common_src})
38 target_link_libraries(plotin rtrad)
39
40 add_executable(psmeta psmeta.c psplot.c ${common_src})
41 target_link_libraries(psmeta rtrad)
42
43 add_executable(psort psort.c sort.c palloc.c ${common_src})
44 target_link_libraries(psort rtrad)
45
46 #add_executable(tbar tbar.c tgraph.c primout.c)
47 #target_link_libraries(tbar rtrad)
48
49 #add_executable(tcurve tcurve.c tgraph.c primout.c)
50 #target_link_libraries(tcurve ${LIB_M})
51
52 #add_executable(tscat tscat.c tgraph.c primout.c)
53 #target_link_libraries(tscat rtrad)
54
55 if(X11_FOUND)
56 add_executable(x11meta
57 palloc.c
58 plot.c
59 x11plot.c
60 xmeta.c
61 ${common_src}
62 )
63 target_link_libraries(x11meta rtrad ${X11_LIBRARIES})
64 install(TARGETS x11meta
65 RUNTIME DESTINATION "bin"
66 )
67 endif()
68
69 add_custom_target(mta ALL
70 COMMAND cv "${CMAKE_CURRENT_SOURCE_DIR}/symbols.met" > "${CMAKE_CURRENT_BINARY_DIR}/symbols.mta"
71 COMMAND cv "${CMAKE_CURRENT_SOURCE_DIR}/vchars.met" > "${CMAKE_CURRENT_BINARY_DIR}/vchars.mta"
72 COMMAND "${CMAKE_COMMAND}" -E copy "${CMAKE_CURRENT_BINARY_DIR}/symbols.mta" "${CMAKE_CURRENT_BINARY_DIR}/vchars.mta" "${CMAKE_BINARY_DIR}/lib"
73 SOURCES symbols.met vchars.met
74 )
75
76 file(COPY
77 boxw.plt
78 cartesian.plt
79 curve.plt
80 function.plt
81 line.plt
82 polar.plt
83 scatter.plt
84 standard.plt
85 symbols.met
86 vchars.met
87 DESTINATION "${CMAKE_BINARY_DIR}/lib"
88 )
89
90 install(TARGETS
91 bgraph
92 cv
93 dgraph
94 gcomp
95 igraph
96 meta2bmp
97 meta2tga
98 pexpand
99 plot4
100 plotin
101 psmeta
102 psort
103 RUNTIME DESTINATION "bin"
104 )