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
RevLine 
[2728]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       
[1954]13###
14# CMakeLists.txt for _asap.so
15###
16
17# root for libatnf
18set( ASAPROOT ${ASAP_SOURCE_DIR} )
19set( SRCDIR ${ASAPROOT}/src )
20
[2587]21# include QT_USE_FILE
22include( ${QT_USE_FILE} )
23
[1954]24# include path
[1957]25include_directories( ${SRCDIR}
26                     ${Boost_INCLUDE_DIR}
[2587]27                     ${QT4_INCLUDE_DIRS}
[1957]28                     ${ASAPROOT}/external-alma
29                     ${ASAPROOT}/external/libpyrap/pyrap-0.3.2 )
[1954]30
31# link path
32link_directories( ${SRCDIR} )
33
[1957]34# use libpyrap
35add_definitions( -DHAVE_LIBPYRAP )
36
[1954]37# source files for libpyrap
38set( ASAP_SRCS
[2587]39#     ${SRCDIR}/Plotter2.cpp
[2393]40     ${SRCDIR}/concurrent.cpp
[1954]41     ${SRCDIR}/MathUtils.cpp
[2289]42     ${SRCDIR}/TableTraverse.cpp
[1954]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
[1974]73     ${SRCDIR}/MSFiller.cpp
74     ${SRCDIR}/MSWriter.cpp
[1954]75     ${SRCDIR}/AsapLogSink.cpp
[2321]76     ${SRCDIR}/STUpgrade.cpp
[2356]77     ${SRCDIR}/STGrid.cpp
[2580]78     ${SRCDIR}/STIdxIter.cpp
[2613]79     ${SRCDIR}/EdgeMarker.cpp
80     ${SRCDIR}/EdgeDetector.cpp
81     ${SRCDIR}/RasterEdgeDetector.cpp
82     ${SRCDIR}/GenericEdgeDetector.cpp
[2689]83     ${SRCDIR}/PlotHelper.cpp
[2707]84     ${SRCDIR}/STSideBandSep.cpp
[2696]85     ${SRCDIR}/STApplyTable.cpp
[2703]86     ${SRCDIR}/STCalTsysTable.cpp
87     ${SRCDIR}/STCalSkyTable.cpp
88     ${SRCDIR}/STCalibration.cpp
89     ${SRCDIR}/STCalSkyPSAlma.cpp
[2720]90     ${SRCDIR}/STCalTsys.cpp
91     ${SRCDIR}/STApplyCal.cpp
92     ${SRCDIR}/Calibrator.cpp
93     ${SRCDIR}/PSAlmaCalibrator.cpp
94     ${SRCDIR}/Locator.cpp
95     ${SRCDIR}/BisectionLocator.cpp
[2727]96     ${SRCDIR}/HuntLocator.cpp
97     ${SRCDIR}/BufferedBisectionLocator.cpp
[2720]98     ${SRCDIR}/Interpolator1D.cpp
[2727]99     ${SRCDIR}/NearestInterpolator1D.cpp
100     ${SRCDIR}/LinearInterpolator1D.cpp
101     ${SRCDIR}/BufferedLinearInterpolator1D.cpp
102     ${SRCDIR}/CubicSplineInterpolator1D.cpp
[2728]103     ${SRCDIR}/PolynomialInterpolator1D.cpp
104     ${SRCDIR}/STBaselineParamTable.cpp )
[1954]105
106set( ASAP_PYSRCS
[2587]107#     ${SRCDIR}/python_Plotter2.cpp
[1954]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
[1974]121     ${SRCDIR}/python_MSFiller.cpp
122     ${SRCDIR}/python_MSWriter.cpp
[1954]123     ${SRCDIR}/python_LogSink.cpp
[2356]124     ${SRCDIR}/python_STGrid.cpp
[2580]125     ${SRCDIR}/python_Iterator.cpp
[2613]126     ${SRCDIR}/python_EdgeMarker.cpp
[2689]127     ${SRCDIR}/python_PlotHelper.cpp
[2707]128     ${SRCDIR}/python_STSideBandSep.cpp
[1954]129     ${SRCDIR}/python_asap.cpp )
130
[2465]131add_library( ${ASAPLIB} SHARED ${ASAP_SRCS} )
132add_library( ${ASAPPYLIB} SHARED ${ASAP_PYSRCS} )
[1957]133
134# library name must be _asap.so
[2465]135set_target_properties( ${ASAPPYLIB}
[1954]136                       PROPERTIES
[2465]137                       PREFIX ""
[1958]138                       SUFFIX .so )
[1954]139
[1957]140target_link_libraries( ${ASAPLIB}
[1958]141                       #${Boost_LIBRARIES}
[2587]142                       ${QT4_LIBRARIES}
[1957]143                       ${PYRAPLIB}
144                       ${ATNFLIB}
[1958]145                       #${CASACORE_LIBRARIES}
[1957]146                       ${WCSLIB} )
[2465]147target_link_libraries( ${ASAPPYLIB}
148                       ${ASAPLIB} )
[1957]149
[2465]150add_dependencies( inst ${ASAPLIB}
151                       ${ASAPPYLIB} )
[1966]152
[1954]153# install directory
154install( TARGETS ${ASAPLIB}
[2465]155         LIBRARY DESTINATION ${LIB_INSTALL_DIR} )
156install( TARGETS ${ASAPPYLIB}
[1954]157         LIBRARY DESTINATION ${PYTHON_INSTALL_DIR} )
[2465]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.