source: trunk/src/CMakeLists.txt@ 2832

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

New Development: No

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: modified so that plotter2 module is imported only in CASA environment, not in standalone ASAP.


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