source: tags/asap-4.1.0/src/CMakeLists.txt@ 2701

Last change on this file since 2701 was 2613, checked in by Takeshi Nakazato, 12 years ago

New Development: Yes

JIRA Issue: Yes CAS-2825

Ready for Test: No

Interface Changes: Yes

What Interface Changed: added new python module sd.edgemarker

Test Programs: not available

Put in Release Notes: Yes

Module(s): Module Names change impacts.

Description: Describe your changes here...

New python module edgemarker is available. The edgemarker is a tool to
detect edge of observed area and mark data near edge as OFF. It can be
used to calibrate OTF data without explicit OFF scan.


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