source: trunk/src/CMakeLists.txt@ 2673

Last change on this file since 2673 was 2663, checked in by Kana Sugimoto, 12 years ago

New Development: No

JIRA Issue: No (fixes to broken cmake build)

Ready for Test: Yes

Interface Changes: Yes

What Interface Changed: Malte has removed Logger class in r2658.

Test Programs: build with cmake

Put in Release Notes: No

Module(s):

Description:

Updated a CMake build script corresponding to modifications by Malte in r2658.
ASAP uses LogIO in casacore for c++ logging and does not depend on Logging
class in ASAP anymore.
This commit updates a CMake build script to fix the broken build due to the
commit. and also removes unused prototype definition in python_asap class.


File size: 3.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 QT_USE_FILE
10include( ${QT_USE_FILE} )
11
12# include path
13include_directories( ${SRCDIR}
14 ${Boost_INCLUDE_DIR}
15 ${QT4_INCLUDE_DIRS}
16 ${ASAPROOT}/external-alma
17 ${ASAPROOT}/external/libpyrap/pyrap-0.3.2 )
18
19# link path
20link_directories( ${SRCDIR} )
21
22# use libpyrap
23add_definitions( -DHAVE_LIBPYRAP )
24
25# source files for libpyrap
26set( ASAP_SRCS
27# ${SRCDIR}/Plotter2.cpp
28 ${SRCDIR}/concurrent.cpp
29 ${SRCDIR}/MathUtils.cpp
30 ${SRCDIR}/TableTraverse.cpp
31 ${SRCDIR}/RowAccumulator.cpp
32 ${SRCDIR}/LineCatalog.cpp
33 ${SRCDIR}/STAttr.cpp
34 ${SRCDIR}/STHeader.cpp
35 ${SRCDIR}/STFiller.cpp
36 ${SRCDIR}/STMath.cpp
37 ${SRCDIR}/STSubTable.cpp
38 ${SRCDIR}/STMolecules.cpp
39 ${SRCDIR}/STTcal.cpp
40 ${SRCDIR}/STFocus.cpp
41 ${SRCDIR}/STWeather.cpp
42 ${SRCDIR}/STFrequencies.cpp
43 ${SRCDIR}/STHistory.cpp
44 ${SRCDIR}/STSelector.cpp
45 ${SRCDIR}/STLineFinder.cpp
46 ${SRCDIR}/STFitter.cpp
47 ${SRCDIR}/STFitEntry.cpp
48 ${SRCDIR}/STFit.cpp
49 ${SRCDIR}/STPol.cpp
50 ${SRCDIR}/STPolLinear.cpp
51 ${SRCDIR}/STPolCircular.cpp
52 ${SRCDIR}/STPolStokes.cpp
53 ${SRCDIR}/STWriter.cpp
54 ${SRCDIR}/STAsciiWriter.cpp
55 ${SRCDIR}/STFITSImageWriter.cpp
56 ${SRCDIR}/STAtmosphere.cpp
57 ${SRCDIR}/Scantable.cpp
58 ${SRCDIR}/FillerBase.cpp
59 ${SRCDIR}/NROFiller.cpp
60 ${SRCDIR}/PKSFiller.cpp
61 ${SRCDIR}/MSFiller.cpp
62 ${SRCDIR}/MSWriter.cpp
63 ${SRCDIR}/AsapLogSink.cpp
64 ${SRCDIR}/STUpgrade.cpp
65 ${SRCDIR}/STGrid.cpp
66 ${SRCDIR}/STIdxIter.cpp
67 ${SRCDIR}/EdgeMarker.cpp
68 ${SRCDIR}/EdgeDetector.cpp
69 ${SRCDIR}/RasterEdgeDetector.cpp
70 ${SRCDIR}/GenericEdgeDetector.cpp
71 ${SRCDIR}/Templates.cpp )
72
73set( ASAP_PYSRCS
74# ${SRCDIR}/python_Plotter2.cpp
75 ${SRCDIR}/python_Scantable.cpp
76 ${SRCDIR}/python_STFiller.cpp
77 ${SRCDIR}/python_STSelector.cpp
78 ${SRCDIR}/python_STMath.cpp
79 ${SRCDIR}/python_Fitter.cpp
80 ${SRCDIR}/python_STLineFinder.cpp
81 ${SRCDIR}/python_STFitEntry.cpp
82 ${SRCDIR}/python_STWriter.cpp
83 ${SRCDIR}/python_LineCatalog.cpp
84 ${SRCDIR}/python_SrcType.cpp
85 ${SRCDIR}/python_STAtmosphere.cpp
86 ${SRCDIR}/python_STCoordinate.cpp
87 ${SRCDIR}/python_Filler.cpp
88 ${SRCDIR}/python_MSFiller.cpp
89 ${SRCDIR}/python_MSWriter.cpp
90 ${SRCDIR}/python_LogSink.cpp
91 ${SRCDIR}/python_STGrid.cpp
92 ${SRCDIR}/python_Iterator.cpp
93 ${SRCDIR}/python_EdgeMarker.cpp
94 ${SRCDIR}/python_asap.cpp )
95
96add_library( ${ASAPLIB} SHARED ${ASAP_SRCS} )
97add_library( ${ASAPPYLIB} SHARED ${ASAP_PYSRCS} )
98
99# library name must be _asap.so
100set_target_properties( ${ASAPPYLIB}
101 PROPERTIES
102 PREFIX ""
103 SUFFIX .so )
104
105target_link_libraries( ${ASAPLIB}
106 #${Boost_LIBRARIES}
107 ${QT4_LIBRARIES}
108 ${PYRAPLIB}
109 ${ATNFLIB}
110 #${CASACORE_LIBRARIES}
111 ${WCSLIB} )
112target_link_libraries( ${ASAPPYLIB}
113 ${ASAPLIB} )
114
115add_dependencies( inst ${ASAPLIB}
116 ${ASAPPYLIB} )
117
118# install directory
119install( TARGETS ${ASAPLIB}
120 LIBRARY DESTINATION ${LIB_INSTALL_DIR} )
121install( TARGETS ${ASAPPYLIB}
122 LIBRARY DESTINATION ${PYTHON_INSTALL_DIR} )
123#if( NOT STANDALONE )
124# execute_process(
125# COMMAND ln -Fs ../${PYTHON_INSTALL_DIR}/_${ASAPLIB}.so ${CMAKE_INSTALL_PREFIX}/lib/_${ASAPLIB}.so
126# OUTPUT_VARIABLE stuff)
127#endif()
Note: See TracBrowser for help on using the repository browser.