ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/meta/CMakeLists.txt
Revision: 1.2
Committed: Wed Oct 14 20:51:44 2015 UTC (8 years, 6 months ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: rad5R1
Changes since 1.1: +18 -1 lines
Log Message:
Fixed issue with metafile libraries

File Contents

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