source: trunk/src/CMakeLists.txt@ 1955

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

New Development: Yes

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

Preliminary version of CMakeLists.txt files.

*NOTE*
Part of library search is hard-coded, so this is not a
complete cross-platform system.


File size: 2.3 KB
Line 
1###
2# CMakeLists.txt for _asap.so
3###
4
5# library name is _asap.so
6set( ASAPLIB _asap.so )
7
8# root for libatnf
9set( ASAPROOT ${ASAP_SOURCE_DIR} )
10set( SRCDIR ${ASAPROOT}/src )
11
12# include path
13include_directories( ${SRCDIR} )
14include_directories( ${ASAPROOT}/external-alma )
15
16# link path
17link_directories( ${SRCDIR} )
18
19# source files for libpyrap
20set( ASAP_SRCS
21 ${SRCDIR}/MathUtils.cpp
22 ${SRCDIR}/RowAccumulator.cpp
23 ${SRCDIR}/Logger.cpp
24 ${SRCDIR}/LineCatalog.cpp
25 ${SRCDIR}/STAttr.cpp
26 ${SRCDIR}/STHeader.cpp
27 ${SRCDIR}/STFiller.cpp
28 ${SRCDIR}/STMath.cpp
29 ${SRCDIR}/STSubTable.cpp
30 ${SRCDIR}/STMolecules.cpp
31 ${SRCDIR}/STTcal.cpp
32 ${SRCDIR}/STFocus.cpp
33 ${SRCDIR}/STWeather.cpp
34 ${SRCDIR}/STFrequencies.cpp
35 ${SRCDIR}/STHistory.cpp
36 ${SRCDIR}/STSelector.cpp
37 ${SRCDIR}/STLineFinder.cpp
38 ${SRCDIR}/STFitter.cpp
39 ${SRCDIR}/STFitEntry.cpp
40 ${SRCDIR}/STFit.cpp
41 ${SRCDIR}/STPol.cpp
42 ${SRCDIR}/STPolLinear.cpp
43 ${SRCDIR}/STPolCircular.cpp
44 ${SRCDIR}/STPolStokes.cpp
45 ${SRCDIR}/STWriter.cpp
46 ${SRCDIR}/STAsciiWriter.cpp
47 ${SRCDIR}/STFITSImageWriter.cpp
48 ${SRCDIR}/STAtmosphere.cpp
49 ${SRCDIR}/Scantable.cpp
50 ${SRCDIR}/FillerBase.cpp
51 ${SRCDIR}/NROFiller.cpp
52 ${SRCDIR}/PKSFiller.cpp
53 ${SRCDIR}/AsapLogSink.cpp
54 ${SRCDIR}/Templates.cpp )
55
56set( ASAP_PYSRCS
57 ${SRCDIR}/python_Scantable.cpp
58 ${SRCDIR}/python_STFiller.cpp
59 ${SRCDIR}/python_STSelector.cpp
60 ${SRCDIR}/python_STMath.cpp
61 ${SRCDIR}/python_Fitter.cpp
62 ${SRCDIR}/python_Logger.cpp
63 ${SRCDIR}/python_STLineFinder.cpp
64 ${SRCDIR}/python_STFitEntry.cpp
65 ${SRCDIR}/python_STWriter.cpp
66 ${SRCDIR}/python_LineCatalog.cpp
67 ${SRCDIR}/python_SrcType.cpp
68 ${SRCDIR}/python_STAtmosphere.cpp
69 ${SRCDIR}/python_STCoordinate.cpp
70 ${SRCDIR}/python_Filler.cpp
71 ${SRCDIR}/python_LogSink.cpp
72 ${SRCDIR}/python_asap.cpp )
73
74add_library( ${ASAPLIB} SHARED ${ASAP_SRCS} ${ASAP_PYSRCS} )
75set_target_properties( ${ASAPLIB}
76 PROPERTIES
77 PREFIX ""
78 SUFFIX "" )
79target_link_libraries( ${ASAPLIB} pyrap atnf ${CASACORE_LIBRARIES} )
80
81# install directory
82install( TARGETS ${ASAPLIB}
83 LIBRARY DESTINATION ${PYTHON_INSTALL_DIR} )
Note: See TracBrowser for help on using the repository browser.