source: branches/parallelCasa3.3/src/CMakeLists.txt@ 2493

Last change on this file since 2493 was 2281, checked in by KohjiNakamura, 13 years ago

TableTraverse added

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