source: branches/hpc33/src/CMakeLists.txt@ 2362

Last change on this file since 2362 was 2321, checked in by Malte Marquarding, 13 years ago

Ticket #249: scantbable schema was changed. This required an update to scantable version 4. I have added a class STUpgrade to handle all schema upgrades. This is handled transparently in the scantable constructor

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}/Templates.cpp )
61
62set( ASAP_PYSRCS
63 ${SRCDIR}/python_Scantable.cpp
64 ${SRCDIR}/python_STFiller.cpp
65 ${SRCDIR}/python_STSelector.cpp
66 ${SRCDIR}/python_STMath.cpp
67 ${SRCDIR}/python_Fitter.cpp
68 ${SRCDIR}/python_Logger.cpp
69 ${SRCDIR}/python_STLineFinder.cpp
70 ${SRCDIR}/python_STFitEntry.cpp
71 ${SRCDIR}/python_STWriter.cpp
72 ${SRCDIR}/python_LineCatalog.cpp
73 ${SRCDIR}/python_SrcType.cpp
74 ${SRCDIR}/python_STAtmosphere.cpp
75 ${SRCDIR}/python_STCoordinate.cpp
76 ${SRCDIR}/python_Filler.cpp
77 ${SRCDIR}/python_MSFiller.cpp
78 ${SRCDIR}/python_MSWriter.cpp
79 ${SRCDIR}/python_LogSink.cpp
80 ${SRCDIR}/python_asap.cpp )
81
82add_library( ${ASAPLIB} SHARED ${ASAP_SRCS} ${ASAP_PYSRCS} )
83
84# library name must be _asap.so
85set_target_properties( ${ASAPLIB}
86 PROPERTIES
87 PREFIX _
88 SUFFIX .so )
89
90target_link_libraries( ${ASAPLIB}
91 #${Boost_LIBRARIES}
92 ${PYRAPLIB}
93 ${ATNFLIB}
94 #${CASACORE_LIBRARIES}
95 ${WCSLIB} )
96
97add_dependencies( inst ${ASAPLIB} )
98
99# install directory
100install( TARGETS ${ASAPLIB}
101 LIBRARY DESTINATION ${PYTHON_INSTALL_DIR} )
Note: See TracBrowser for help on using the repository browser.