source: branches/parallel/src/CMakeLists.txt@ 2318

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

TableTraverse added

File size: 2.8 KB
RevLine 
[1954]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
[1957]10include_directories( ${SRCDIR}
11 ${Boost_INCLUDE_DIR}
12 ${ASAPROOT}/external-alma
13 ${ASAPROOT}/external/libpyrap/pyrap-0.3.2 )
[1954]14
15# link path
16link_directories( ${SRCDIR} )
17
[1957]18# use libpyrap
19add_definitions( -DHAVE_LIBPYRAP )
20
[1954]21# source files for libpyrap
22set( ASAP_SRCS
23 ${SRCDIR}/MathUtils.cpp
[2281]24 ${SRCDIR}/TableTraverse.cpp
[1954]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
[1974]56 ${SRCDIR}/MSFiller.cpp
57 ${SRCDIR}/MSWriter.cpp
[1954]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
[1974]76 ${SRCDIR}/python_MSFiller.cpp
77 ${SRCDIR}/python_MSWriter.cpp
[1954]78 ${SRCDIR}/python_LogSink.cpp
79 ${SRCDIR}/python_asap.cpp )
80
81add_library( ${ASAPLIB} SHARED ${ASAP_SRCS} ${ASAP_PYSRCS} )
[1957]82
83# library name must be _asap.so
[1954]84set_target_properties( ${ASAPLIB}
85 PROPERTIES
[1958]86 PREFIX _
87 SUFFIX .so )
[1954]88
[1957]89target_link_libraries( ${ASAPLIB}
[1958]90 #${Boost_LIBRARIES}
[1957]91 ${PYRAPLIB}
92 ${ATNFLIB}
[1958]93 #${CASACORE_LIBRARIES}
[1957]94 ${WCSLIB} )
95
[1966]96add_dependencies( inst ${ASAPLIB} )
97
[1954]98# install directory
99install( TARGETS ${ASAPLIB}
100 LIBRARY DESTINATION ${PYTHON_INSTALL_DIR} )
Note: See TracBrowser for help on using the repository browser.