source: trunk/src/CMakeLists.txt @ 2728

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

New Development: Yes

JIRA Issue: Yes CAS-4794

Ready for Test: No

Interface Changes: No

What Interface Changed:

Test Programs:

Put in Release Notes: No

Module(s): sd

Description: STBaselineParamTable extended from STApplyTable.


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