source: trunk/src/CMakeLists.txt@ 1973

Last change on this file since 1973 was 1966, checked in by Takeshi Nakazato, 14 years ago

New Development: No

JIRA Issue: Yes CAS-2668

Ready for Test: Yes

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...

All libraries, executables, programs are installed by default.


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