source: branches/plotter2/src/CMakeLists.txt@ 2985

Last change on this file since 2985 was 2825, checked in by WataruKawasaki, 11 years ago

New Development: Yes

JIRA Issue: Yes (CAS-3620)

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs:

Put in Release Notes: Yes

Module(s): sd

Description: add a new sd module sd.plotter2, a new lightweight plotter based on pgplot.


File size: 4.1 KB
Line 
1###
2# CMakeLists.txt for _asap.so
3###
4
5# root for libatnf
6set( ASAPROOT ${ASAP_SOURCE_DIR} )
7set( SRCDIR ${ASAPROOT}/src )
8
9# include path
10include_directories( ${SRCDIR}
11 ${Boost_INCLUDE_DIR}
12 ${ASAPROOT}/external-alma
13 ${ASAPROOT}/external/libpyrap/pyrap-0.3.2 )
14
15# link path
16link_directories( ${SRCDIR} )
17
18# use libpyrap
19add_definitions( -DHAVE_LIBPYRAP )
20
21# source files for libpyrap
22set( ASAP_SRCS
23 ${SRCDIR}/Plotter2.cpp
24 ${SRCDIR}/concurrent.cpp
25 ${SRCDIR}/MathUtils.cpp
26 ${SRCDIR}/TableTraverse.cpp
27 ${SRCDIR}/RowAccumulator.cpp
28 ${SRCDIR}/LineCatalog.cpp
29 ${SRCDIR}/STAttr.cpp
30 ${SRCDIR}/STHeader.cpp
31 ${SRCDIR}/STFiller.cpp
32 ${SRCDIR}/STMath.cpp
33 ${SRCDIR}/STSubTable.cpp
34 ${SRCDIR}/STMolecules.cpp
35 ${SRCDIR}/STTcal.cpp
36 ${SRCDIR}/STFocus.cpp
37 ${SRCDIR}/STWeather.cpp
38 ${SRCDIR}/STFrequencies.cpp
39 ${SRCDIR}/STHistory.cpp
40 ${SRCDIR}/STSelector.cpp
41 ${SRCDIR}/STLineFinder.cpp
42 ${SRCDIR}/STFitter.cpp
43 ${SRCDIR}/STFitEntry.cpp
44 ${SRCDIR}/STFit.cpp
45 ${SRCDIR}/STPol.cpp
46 ${SRCDIR}/STPolLinear.cpp
47 ${SRCDIR}/STPolCircular.cpp
48 ${SRCDIR}/STPolStokes.cpp
49 ${SRCDIR}/STWriter.cpp
50 ${SRCDIR}/STAsciiWriter.cpp
51 ${SRCDIR}/STFITSImageWriter.cpp
52 ${SRCDIR}/STAtmosphere.cpp
53 ${SRCDIR}/Scantable.cpp
54 ${SRCDIR}/FillerBase.cpp
55 ${SRCDIR}/NROFiller.cpp
56 ${SRCDIR}/PKSFiller.cpp
57 ${SRCDIR}/MSFiller.cpp
58 ${SRCDIR}/MSWriter.cpp
59 ${SRCDIR}/AsapLogSink.cpp
60 ${SRCDIR}/STUpgrade.cpp
61 ${SRCDIR}/STGrid.cpp
62 ${SRCDIR}/STIdxIter.cpp
63 ${SRCDIR}/EdgeMarker.cpp
64 ${SRCDIR}/EdgeDetector.cpp
65 ${SRCDIR}/RasterEdgeDetector.cpp
66 ${SRCDIR}/GenericEdgeDetector.cpp
67 ${SRCDIR}/PlotHelper.cpp
68 ${SRCDIR}/STSideBandSep.cpp
69 ${SRCDIR}/STApplyTable.cpp
70 ${SRCDIR}/STCalTsysTable.cpp
71 ${SRCDIR}/STCalSkyTable.cpp
72 ${SRCDIR}/STCalibration.cpp
73 ${SRCDIR}/STCalSkyPSAlma.cpp
74 ${SRCDIR}/STCalSkyOtfAlma.cpp
75 ${SRCDIR}/STCalTsys.cpp
76 ${SRCDIR}/STApplyCal.cpp
77 ${SRCDIR}/Calibrator.cpp
78 ${SRCDIR}/PSAlmaCalibrator.cpp
79 ${SRCDIR}/STBaselineTable.cpp
80 ${SRCDIR}/CalibrationManager.cpp )
81
82set( ASAP_PYSRCS
83 ${SRCDIR}/python_Plotter2.cpp
84 ${SRCDIR}/python_Scantable.cpp
85 ${SRCDIR}/python_STFiller.cpp
86 ${SRCDIR}/python_STSelector.cpp
87 ${SRCDIR}/python_STMath.cpp
88 ${SRCDIR}/python_Fitter.cpp
89 ${SRCDIR}/python_STLineFinder.cpp
90 ${SRCDIR}/python_STFitEntry.cpp
91 ${SRCDIR}/python_STWriter.cpp
92 ${SRCDIR}/python_LineCatalog.cpp
93 ${SRCDIR}/python_SrcType.cpp
94 ${SRCDIR}/python_STAtmosphere.cpp
95 ${SRCDIR}/python_STCoordinate.cpp
96 ${SRCDIR}/python_Filler.cpp
97 ${SRCDIR}/python_MSFiller.cpp
98 ${SRCDIR}/python_MSWriter.cpp
99 ${SRCDIR}/python_LogSink.cpp
100 ${SRCDIR}/python_STGrid.cpp
101 ${SRCDIR}/python_Iterator.cpp
102 ${SRCDIR}/python_EdgeMarker.cpp
103 ${SRCDIR}/python_PlotHelper.cpp
104 ${SRCDIR}/python_STSideBandSep.cpp
105 ${SRCDIR}/python_CalibrationManager.cpp
106 ${SRCDIR}/python_asap.cpp )
107
108add_library( ${ASAPLIB} SHARED ${ASAP_SRCS} )
109add_library( ${ASAPPYLIB} SHARED ${ASAP_PYSRCS} )
110
111# library name must be _asap.so
112set_target_properties( ${ASAPPYLIB}
113 PROPERTIES
114 PREFIX ""
115 SUFFIX .so )
116
117target_link_libraries( ${ASAPLIB}
118 #${Boost_LIBRARIES}
119 ${X11_LIBRARIES}
120 ${PGPLOT_LIBRARIES}
121 ${PYRAPLIB}
122 ${ATNFLIB}
123 #${CASACORE_LIBRARIES}
124 ${WCSLIB} )
125target_link_libraries( ${ASAPPYLIB}
126 ${ASAPLIB} )
127
128add_dependencies( inst ${ASAPLIB}
129 ${ASAPPYLIB} )
130
131# install directory
132install( TARGETS ${ASAPLIB}
133 LIBRARY DESTINATION ${LIB_INSTALL_DIR} )
134install( TARGETS ${ASAPPYLIB}
135 LIBRARY DESTINATION ${PYTHON_INSTALL_DIR} )
136#if( NOT STANDALONE )
137# execute_process(
138# COMMAND ln -Fs ../${PYTHON_INSTALL_DIR}/_${ASAPLIB}.so ${CMAKE_INSTALL_PREFIX}/lib/_${ASAPLIB}.so
139# OUTPUT_VARIABLE stuff)
140#endif()
Note: See TracBrowser for help on using the repository browser.