source: trunk/src/CMakeLists.txt @ 2707

Last change on this file since 2707 was 2707, checked in by Kana Sugimoto, 11 years ago

New Development: Yes

JIRA Issue: Yes (CAS-4141)

Ready for Test: Yes

Interface Changes: Yes

What Interface Changed:

  • a new c++ class, STSideBandSep and its python interface.
  • a new method set_lo1 in the sbseparator module.

Test Programs: manual tests by CSV scientists.

Put in Release Notes: No

Module(s): STSidebandSep (a new class) and sbseparator

Description:

Added a new c++ class, STSideBandSep, and its python interface (python_STSideBandSep.cpp).
The class works on calculating frequency information of image side band and fill scantable.
Also added a new python method, set_lo1(double), in sbseparator module. This is to allow
user to set LO1 frequency to solve frequencies of image side band manually.


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