source: trunk/src/CMakeLists.txt@ 2369

Last change on this file since 2369 was 2356, checked in by Takeshi Nakazato, 13 years ago

New Development: Yes

JIRA Issue: Yes CAS-2816

Ready for Test: No

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Defined new class STGrid and its python interface.
The STGrid class performs single dish gridding.
At the moment, only single polarization data is supported.


File size: 2.8 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}/MathUtils.cpp
24 ${SRCDIR}/TableTraverse.cpp
25 ${SRCDIR}/RowAccumulator.cpp
26 ${SRCDIR}/Logger.cpp
27 ${SRCDIR}/LineCatalog.cpp
28 ${SRCDIR}/STAttr.cpp
29 ${SRCDIR}/STHeader.cpp
30 ${SRCDIR}/STFiller.cpp
31 ${SRCDIR}/STMath.cpp
32 ${SRCDIR}/STSubTable.cpp
33 ${SRCDIR}/STMolecules.cpp
34 ${SRCDIR}/STTcal.cpp
35 ${SRCDIR}/STFocus.cpp
36 ${SRCDIR}/STWeather.cpp
37 ${SRCDIR}/STFrequencies.cpp
38 ${SRCDIR}/STHistory.cpp
39 ${SRCDIR}/STSelector.cpp
40 ${SRCDIR}/STLineFinder.cpp
41 ${SRCDIR}/STFitter.cpp
42 ${SRCDIR}/STFitEntry.cpp
43 ${SRCDIR}/STFit.cpp
44 ${SRCDIR}/STPol.cpp
45 ${SRCDIR}/STPolLinear.cpp
46 ${SRCDIR}/STPolCircular.cpp
47 ${SRCDIR}/STPolStokes.cpp
48 ${SRCDIR}/STWriter.cpp
49 ${SRCDIR}/STAsciiWriter.cpp
50 ${SRCDIR}/STFITSImageWriter.cpp
51 ${SRCDIR}/STAtmosphere.cpp
52 ${SRCDIR}/Scantable.cpp
53 ${SRCDIR}/FillerBase.cpp
54 ${SRCDIR}/NROFiller.cpp
55 ${SRCDIR}/PKSFiller.cpp
56 ${SRCDIR}/MSFiller.cpp
57 ${SRCDIR}/MSWriter.cpp
58 ${SRCDIR}/AsapLogSink.cpp
59 ${SRCDIR}/STUpgrade.cpp
60 ${SRCDIR}/STGrid.cpp
61 ${SRCDIR}/Templates.cpp )
62
63set( ASAP_PYSRCS
64 ${SRCDIR}/python_Scantable.cpp
65 ${SRCDIR}/python_STFiller.cpp
66 ${SRCDIR}/python_STSelector.cpp
67 ${SRCDIR}/python_STMath.cpp
68 ${SRCDIR}/python_Fitter.cpp
69 ${SRCDIR}/python_Logger.cpp
70 ${SRCDIR}/python_STLineFinder.cpp
71 ${SRCDIR}/python_STFitEntry.cpp
72 ${SRCDIR}/python_STWriter.cpp
73 ${SRCDIR}/python_LineCatalog.cpp
74 ${SRCDIR}/python_SrcType.cpp
75 ${SRCDIR}/python_STAtmosphere.cpp
76 ${SRCDIR}/python_STCoordinate.cpp
77 ${SRCDIR}/python_Filler.cpp
78 ${SRCDIR}/python_MSFiller.cpp
79 ${SRCDIR}/python_MSWriter.cpp
80 ${SRCDIR}/python_LogSink.cpp
81 ${SRCDIR}/python_STGrid.cpp
82 ${SRCDIR}/python_asap.cpp )
83
84add_library( ${ASAPLIB} SHARED ${ASAP_SRCS} ${ASAP_PYSRCS} )
85
86# library name must be _asap.so
87set_target_properties( ${ASAPLIB}
88 PROPERTIES
89 PREFIX _
90 SUFFIX .so )
91
92target_link_libraries( ${ASAPLIB}
93 #${Boost_LIBRARIES}
94 ${PYRAPLIB}
95 ${ATNFLIB}
96 #${CASACORE_LIBRARIES}
97 ${WCSLIB} )
98
99add_dependencies( inst ${ASAPLIB} )
100
101# install directory
102install( TARGETS ${ASAPLIB}
103 LIBRARY DESTINATION ${PYTHON_INSTALL_DIR} )
Note: See TracBrowser for help on using the repository browser.