[1954] | 1 | ###
|
---|
| 2 | # CMakeLists.txt for _asap.so
|
---|
| 3 | ###
|
---|
| 4 |
|
---|
| 5 | # root for libatnf
|
---|
| 6 | set( ASAPROOT ${ASAP_SOURCE_DIR} )
|
---|
| 7 | set( SRCDIR ${ASAPROOT}/src )
|
---|
| 8 |
|
---|
[2587] | 9 | # include QT_USE_FILE
|
---|
| 10 | include( ${QT_USE_FILE} )
|
---|
| 11 |
|
---|
[1954] | 12 | # include path
|
---|
[1957] | 13 | include_directories( ${SRCDIR}
|
---|
| 14 | ${Boost_INCLUDE_DIR}
|
---|
[2587] | 15 | ${QT4_INCLUDE_DIRS}
|
---|
[1957] | 16 | ${ASAPROOT}/external-alma
|
---|
| 17 | ${ASAPROOT}/external/libpyrap/pyrap-0.3.2 )
|
---|
[1954] | 18 |
|
---|
| 19 | # link path
|
---|
| 20 | link_directories( ${SRCDIR} )
|
---|
| 21 |
|
---|
[1957] | 22 | # use libpyrap
|
---|
| 23 | add_definitions( -DHAVE_LIBPYRAP )
|
---|
| 24 |
|
---|
[1954] | 25 | # source files for libpyrap
|
---|
| 26 | set( ASAP_SRCS
|
---|
[2587] | 27 | # ${SRCDIR}/Plotter2.cpp
|
---|
[2393] | 28 | ${SRCDIR}/concurrent.cpp
|
---|
[1954] | 29 | ${SRCDIR}/MathUtils.cpp
|
---|
[2289] | 30 | ${SRCDIR}/TableTraverse.cpp
|
---|
[1954] | 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
|
---|
[1974] | 61 | ${SRCDIR}/MSFiller.cpp
|
---|
| 62 | ${SRCDIR}/MSWriter.cpp
|
---|
[1954] | 63 | ${SRCDIR}/AsapLogSink.cpp
|
---|
[2321] | 64 | ${SRCDIR}/STUpgrade.cpp
|
---|
[2356] | 65 | ${SRCDIR}/STGrid.cpp
|
---|
[2580] | 66 | ${SRCDIR}/STIdxIter.cpp
|
---|
[2613] | 67 | ${SRCDIR}/EdgeMarker.cpp
|
---|
| 68 | ${SRCDIR}/EdgeDetector.cpp
|
---|
| 69 | ${SRCDIR}/RasterEdgeDetector.cpp
|
---|
| 70 | ${SRCDIR}/GenericEdgeDetector.cpp
|
---|
[2689] | 71 | ${SRCDIR}/PlotHelper.cpp
|
---|
[2707] | 72 | ${SRCDIR}/STSideBandSep.cpp
|
---|
[2696] | 73 | ${SRCDIR}/STApplyTable.cpp
|
---|
[2703] | 74 | ${SRCDIR}/STCalTsysTable.cpp
|
---|
| 75 | ${SRCDIR}/STCalSkyTable.cpp
|
---|
| 76 | ${SRCDIR}/STCalibration.cpp
|
---|
| 77 | ${SRCDIR}/STCalSkyPSAlma.cpp
|
---|
[2720] | 78 | ${SRCDIR}/STCalTsys.cpp
|
---|
| 79 | ${SRCDIR}/STApplyCal.cpp
|
---|
| 80 | ${SRCDIR}/Calibrator.cpp
|
---|
| 81 | ${SRCDIR}/PSAlmaCalibrator.cpp
|
---|
| 82 | ${SRCDIR}/Locator.cpp
|
---|
| 83 | ${SRCDIR}/BisectionLocator.cpp
|
---|
[2727] | 84 | ${SRCDIR}/HuntLocator.cpp
|
---|
| 85 | ${SRCDIR}/BufferedBisectionLocator.cpp
|
---|
[2720] | 86 | ${SRCDIR}/Interpolator1D.cpp
|
---|
[2727] | 87 | ${SRCDIR}/NearestInterpolator1D.cpp
|
---|
| 88 | ${SRCDIR}/LinearInterpolator1D.cpp
|
---|
| 89 | ${SRCDIR}/BufferedLinearInterpolator1D.cpp
|
---|
| 90 | ${SRCDIR}/CubicSplineInterpolator1D.cpp
|
---|
[2728] | 91 | ${SRCDIR}/PolynomialInterpolator1D.cpp
|
---|
| 92 | ${SRCDIR}/STBaselineParamTable.cpp )
|
---|
[1954] | 93 |
|
---|
| 94 | set( ASAP_PYSRCS
|
---|
[2587] | 95 | # ${SRCDIR}/python_Plotter2.cpp
|
---|
[1954] | 96 | ${SRCDIR}/python_Scantable.cpp
|
---|
| 97 | ${SRCDIR}/python_STFiller.cpp
|
---|
| 98 | ${SRCDIR}/python_STSelector.cpp
|
---|
| 99 | ${SRCDIR}/python_STMath.cpp
|
---|
| 100 | ${SRCDIR}/python_Fitter.cpp
|
---|
| 101 | ${SRCDIR}/python_STLineFinder.cpp
|
---|
| 102 | ${SRCDIR}/python_STFitEntry.cpp
|
---|
| 103 | ${SRCDIR}/python_STWriter.cpp
|
---|
| 104 | ${SRCDIR}/python_LineCatalog.cpp
|
---|
| 105 | ${SRCDIR}/python_SrcType.cpp
|
---|
| 106 | ${SRCDIR}/python_STAtmosphere.cpp
|
---|
| 107 | ${SRCDIR}/python_STCoordinate.cpp
|
---|
| 108 | ${SRCDIR}/python_Filler.cpp
|
---|
[1974] | 109 | ${SRCDIR}/python_MSFiller.cpp
|
---|
| 110 | ${SRCDIR}/python_MSWriter.cpp
|
---|
[1954] | 111 | ${SRCDIR}/python_LogSink.cpp
|
---|
[2356] | 112 | ${SRCDIR}/python_STGrid.cpp
|
---|
[2580] | 113 | ${SRCDIR}/python_Iterator.cpp
|
---|
[2613] | 114 | ${SRCDIR}/python_EdgeMarker.cpp
|
---|
[2689] | 115 | ${SRCDIR}/python_PlotHelper.cpp
|
---|
[2707] | 116 | ${SRCDIR}/python_STSideBandSep.cpp
|
---|
[1954] | 117 | ${SRCDIR}/python_asap.cpp )
|
---|
| 118 |
|
---|
[2465] | 119 | add_library( ${ASAPLIB} SHARED ${ASAP_SRCS} )
|
---|
| 120 | add_library( ${ASAPPYLIB} SHARED ${ASAP_PYSRCS} )
|
---|
[1957] | 121 |
|
---|
| 122 | # library name must be _asap.so
|
---|
[2465] | 123 | set_target_properties( ${ASAPPYLIB}
|
---|
[1954] | 124 | PROPERTIES
|
---|
[2465] | 125 | PREFIX ""
|
---|
[1958] | 126 | SUFFIX .so )
|
---|
[1954] | 127 |
|
---|
[1957] | 128 | target_link_libraries( ${ASAPLIB}
|
---|
[1958] | 129 | #${Boost_LIBRARIES}
|
---|
[2587] | 130 | ${QT4_LIBRARIES}
|
---|
[1957] | 131 | ${PYRAPLIB}
|
---|
| 132 | ${ATNFLIB}
|
---|
[1958] | 133 | #${CASACORE_LIBRARIES}
|
---|
[1957] | 134 | ${WCSLIB} )
|
---|
[2465] | 135 | target_link_libraries( ${ASAPPYLIB}
|
---|
| 136 | ${ASAPLIB} )
|
---|
[1957] | 137 |
|
---|
[2465] | 138 | add_dependencies( inst ${ASAPLIB}
|
---|
| 139 | ${ASAPPYLIB} )
|
---|
[1966] | 140 |
|
---|
[1954] | 141 | # install directory
|
---|
| 142 | install( TARGETS ${ASAPLIB}
|
---|
[2465] | 143 | LIBRARY DESTINATION ${LIB_INSTALL_DIR} )
|
---|
| 144 | install( TARGETS ${ASAPPYLIB}
|
---|
[1954] | 145 | LIBRARY DESTINATION ${PYTHON_INSTALL_DIR} )
|
---|
[2465] | 146 | #if( NOT STANDALONE )
|
---|
| 147 | # execute_process(
|
---|
| 148 | # COMMAND ln -Fs ../${PYTHON_INSTALL_DIR}/_${ASAPLIB}.so ${CMAKE_INSTALL_PREFIX}/lib/_${ASAPLIB}.so
|
---|
| 149 | # OUTPUT_VARIABLE stuff)
|
---|
| 150 | #endif()
|
---|