source: trunk/src/CMakeLists.txt@ 2832

Last change on this file since 2832 was 2832, checked in by WataruKawasaki, 11 years ago

New Development: No

JIRA Issue: Yes (CAS-3620)

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs:

Put in Release Notes: Yes

Module(s): sd

Description: modified so that plotter2 module is imported only in CASA environment, not in standalone ASAP.


File size: 4.2 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
[2832]21# enable plotter2
22add_definitions( -DENABLE_PLOTTER2 )
23
[1954]24# source files for libpyrap
25set( ASAP_SRCS
[2830]26 ${SRCDIR}/Plotter2.cpp
[2393]27 ${SRCDIR}/concurrent.cpp
[1954]28 ${SRCDIR}/MathUtils.cpp
[2289]29 ${SRCDIR}/TableTraverse.cpp
[1954]30 ${SRCDIR}/RowAccumulator.cpp
31 ${SRCDIR}/LineCatalog.cpp
32 ${SRCDIR}/STAttr.cpp
33 ${SRCDIR}/STHeader.cpp
34 ${SRCDIR}/STFiller.cpp
35 ${SRCDIR}/STMath.cpp
36 ${SRCDIR}/STSubTable.cpp
37 ${SRCDIR}/STMolecules.cpp
38 ${SRCDIR}/STTcal.cpp
39 ${SRCDIR}/STFocus.cpp
40 ${SRCDIR}/STWeather.cpp
41 ${SRCDIR}/STFrequencies.cpp
42 ${SRCDIR}/STHistory.cpp
43 ${SRCDIR}/STSelector.cpp
44 ${SRCDIR}/STLineFinder.cpp
45 ${SRCDIR}/STFitter.cpp
46 ${SRCDIR}/STFitEntry.cpp
47 ${SRCDIR}/STFit.cpp
48 ${SRCDIR}/STPol.cpp
49 ${SRCDIR}/STPolLinear.cpp
50 ${SRCDIR}/STPolCircular.cpp
51 ${SRCDIR}/STPolStokes.cpp
52 ${SRCDIR}/STWriter.cpp
53 ${SRCDIR}/STAsciiWriter.cpp
54 ${SRCDIR}/STFITSImageWriter.cpp
55 ${SRCDIR}/STAtmosphere.cpp
56 ${SRCDIR}/Scantable.cpp
57 ${SRCDIR}/FillerBase.cpp
58 ${SRCDIR}/NROFiller.cpp
59 ${SRCDIR}/PKSFiller.cpp
[1974]60 ${SRCDIR}/MSFiller.cpp
61 ${SRCDIR}/MSWriter.cpp
[1954]62 ${SRCDIR}/AsapLogSink.cpp
[2321]63 ${SRCDIR}/STUpgrade.cpp
[2356]64 ${SRCDIR}/STGrid.cpp
[2580]65 ${SRCDIR}/STIdxIter.cpp
[2613]66 ${SRCDIR}/EdgeMarker.cpp
67 ${SRCDIR}/EdgeDetector.cpp
68 ${SRCDIR}/RasterEdgeDetector.cpp
69 ${SRCDIR}/GenericEdgeDetector.cpp
[2689]70 ${SRCDIR}/PlotHelper.cpp
[2707]71 ${SRCDIR}/STSideBandSep.cpp
[2696]72 ${SRCDIR}/STApplyTable.cpp
[2703]73 ${SRCDIR}/STCalTsysTable.cpp
74 ${SRCDIR}/STCalSkyTable.cpp
75 ${SRCDIR}/STCalibration.cpp
76 ${SRCDIR}/STCalSkyPSAlma.cpp
[2757]77 ${SRCDIR}/STCalSkyOtfAlma.cpp
[2720]78 ${SRCDIR}/STCalTsys.cpp
79 ${SRCDIR}/STApplyCal.cpp
80 ${SRCDIR}/Calibrator.cpp
81 ${SRCDIR}/PSAlmaCalibrator.cpp
[2742]82 ${SRCDIR}/STBaselineTable.cpp
83 ${SRCDIR}/CalibrationManager.cpp )
[1954]84
85set( ASAP_PYSRCS
[2830]86 ${SRCDIR}/python_Plotter2.cpp
[1954]87 ${SRCDIR}/python_Scantable.cpp
88 ${SRCDIR}/python_STFiller.cpp
89 ${SRCDIR}/python_STSelector.cpp
90 ${SRCDIR}/python_STMath.cpp
91 ${SRCDIR}/python_Fitter.cpp
92 ${SRCDIR}/python_STLineFinder.cpp
93 ${SRCDIR}/python_STFitEntry.cpp
94 ${SRCDIR}/python_STWriter.cpp
95 ${SRCDIR}/python_LineCatalog.cpp
96 ${SRCDIR}/python_SrcType.cpp
97 ${SRCDIR}/python_STAtmosphere.cpp
98 ${SRCDIR}/python_STCoordinate.cpp
99 ${SRCDIR}/python_Filler.cpp
[1974]100 ${SRCDIR}/python_MSFiller.cpp
101 ${SRCDIR}/python_MSWriter.cpp
[1954]102 ${SRCDIR}/python_LogSink.cpp
[2356]103 ${SRCDIR}/python_STGrid.cpp
[2580]104 ${SRCDIR}/python_Iterator.cpp
[2613]105 ${SRCDIR}/python_EdgeMarker.cpp
[2689]106 ${SRCDIR}/python_PlotHelper.cpp
[2707]107 ${SRCDIR}/python_STSideBandSep.cpp
[2742]108 ${SRCDIR}/python_CalibrationManager.cpp
[1954]109 ${SRCDIR}/python_asap.cpp )
110
[2465]111add_library( ${ASAPLIB} SHARED ${ASAP_SRCS} )
112add_library( ${ASAPPYLIB} SHARED ${ASAP_PYSRCS} )
[1957]113
114# library name must be _asap.so
[2465]115set_target_properties( ${ASAPPYLIB}
[1954]116 PROPERTIES
[2465]117 PREFIX ""
[1958]118 SUFFIX .so )
[1954]119
[1957]120target_link_libraries( ${ASAPLIB}
[1958]121 #${Boost_LIBRARIES}
[2830]122 ${X11_LIBRARIES}
123 ${PGPLOT_LIBRARIES}
[1957]124 ${PYRAPLIB}
125 ${ATNFLIB}
[1958]126 #${CASACORE_LIBRARIES}
[1957]127 ${WCSLIB} )
[2465]128target_link_libraries( ${ASAPPYLIB}
129 ${ASAPLIB} )
[1957]130
[2465]131add_dependencies( inst ${ASAPLIB}
132 ${ASAPPYLIB} )
[1966]133
[1954]134# install directory
135install( TARGETS ${ASAPLIB}
[2465]136 LIBRARY DESTINATION ${LIB_INSTALL_DIR} )
137install( TARGETS ${ASAPPYLIB}
[1954]138 LIBRARY DESTINATION ${PYTHON_INSTALL_DIR} )
[2465]139#if( NOT STANDALONE )
140# execute_process(
141# COMMAND ln -Fs ../${PYTHON_INSTALL_DIR}/_${ASAPLIB}.so ${CMAKE_INSTALL_PREFIX}/lib/_${ASAPLIB}.so
142# OUTPUT_VARIABLE stuff)
143#endif()
Note: See TracBrowser for help on using the repository browser.