[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 |
|
---|
| 9 | # include path
|
---|
[1957] | 10 | include_directories( ${SRCDIR}
|
---|
| 11 | ${Boost_INCLUDE_DIR}
|
---|
| 12 | ${ASAPROOT}/external-alma
|
---|
| 13 | ${ASAPROOT}/external/libpyrap/pyrap-0.3.2 )
|
---|
[1954] | 14 |
|
---|
| 15 | # link path
|
---|
| 16 | link_directories( ${SRCDIR} )
|
---|
| 17 |
|
---|
[1957] | 18 | # use libpyrap
|
---|
| 19 | add_definitions( -DHAVE_LIBPYRAP )
|
---|
| 20 |
|
---|
[1954] | 21 | # source files for libpyrap
|
---|
| 22 | set( ASAP_SRCS
|
---|
| 23 | ${SRCDIR}/MathUtils.cpp
|
---|
| 24 | ${SRCDIR}/RowAccumulator.cpp
|
---|
| 25 | ${SRCDIR}/Logger.cpp
|
---|
| 26 | ${SRCDIR}/LineCatalog.cpp
|
---|
| 27 | ${SRCDIR}/STAttr.cpp
|
---|
| 28 | ${SRCDIR}/STHeader.cpp
|
---|
| 29 | ${SRCDIR}/STFiller.cpp
|
---|
| 30 | ${SRCDIR}/STMath.cpp
|
---|
| 31 | ${SRCDIR}/STSubTable.cpp
|
---|
| 32 | ${SRCDIR}/STMolecules.cpp
|
---|
| 33 | ${SRCDIR}/STTcal.cpp
|
---|
| 34 | ${SRCDIR}/STFocus.cpp
|
---|
| 35 | ${SRCDIR}/STWeather.cpp
|
---|
| 36 | ${SRCDIR}/STFrequencies.cpp
|
---|
| 37 | ${SRCDIR}/STHistory.cpp
|
---|
| 38 | ${SRCDIR}/STSelector.cpp
|
---|
| 39 | ${SRCDIR}/STLineFinder.cpp
|
---|
| 40 | ${SRCDIR}/STFitter.cpp
|
---|
| 41 | ${SRCDIR}/STFitEntry.cpp
|
---|
| 42 | ${SRCDIR}/STFit.cpp
|
---|
| 43 | ${SRCDIR}/STPol.cpp
|
---|
| 44 | ${SRCDIR}/STPolLinear.cpp
|
---|
| 45 | ${SRCDIR}/STPolCircular.cpp
|
---|
| 46 | ${SRCDIR}/STPolStokes.cpp
|
---|
| 47 | ${SRCDIR}/STWriter.cpp
|
---|
| 48 | ${SRCDIR}/STAsciiWriter.cpp
|
---|
| 49 | ${SRCDIR}/STFITSImageWriter.cpp
|
---|
| 50 | ${SRCDIR}/STAtmosphere.cpp
|
---|
| 51 | ${SRCDIR}/Scantable.cpp
|
---|
| 52 | ${SRCDIR}/FillerBase.cpp
|
---|
| 53 | ${SRCDIR}/NROFiller.cpp
|
---|
| 54 | ${SRCDIR}/PKSFiller.cpp
|
---|
| 55 | ${SRCDIR}/AsapLogSink.cpp
|
---|
| 56 | ${SRCDIR}/Templates.cpp )
|
---|
| 57 |
|
---|
| 58 | set( ASAP_PYSRCS
|
---|
| 59 | ${SRCDIR}/python_Scantable.cpp
|
---|
| 60 | ${SRCDIR}/python_STFiller.cpp
|
---|
| 61 | ${SRCDIR}/python_STSelector.cpp
|
---|
| 62 | ${SRCDIR}/python_STMath.cpp
|
---|
| 63 | ${SRCDIR}/python_Fitter.cpp
|
---|
| 64 | ${SRCDIR}/python_Logger.cpp
|
---|
| 65 | ${SRCDIR}/python_STLineFinder.cpp
|
---|
| 66 | ${SRCDIR}/python_STFitEntry.cpp
|
---|
| 67 | ${SRCDIR}/python_STWriter.cpp
|
---|
| 68 | ${SRCDIR}/python_LineCatalog.cpp
|
---|
| 69 | ${SRCDIR}/python_SrcType.cpp
|
---|
| 70 | ${SRCDIR}/python_STAtmosphere.cpp
|
---|
| 71 | ${SRCDIR}/python_STCoordinate.cpp
|
---|
| 72 | ${SRCDIR}/python_Filler.cpp
|
---|
| 73 | ${SRCDIR}/python_LogSink.cpp
|
---|
| 74 | ${SRCDIR}/python_asap.cpp )
|
---|
| 75 |
|
---|
| 76 | add_library( ${ASAPLIB} SHARED ${ASAP_SRCS} ${ASAP_PYSRCS} )
|
---|
[1957] | 77 |
|
---|
| 78 | # library name must be _asap.so
|
---|
[1954] | 79 | set_target_properties( ${ASAPLIB}
|
---|
| 80 | PROPERTIES
|
---|
[1958] | 81 | PREFIX _
|
---|
| 82 | SUFFIX .so )
|
---|
[1954] | 83 |
|
---|
[1957] | 84 | target_link_libraries( ${ASAPLIB}
|
---|
[1958] | 85 | #${Boost_LIBRARIES}
|
---|
[1957] | 86 | ${PYRAPLIB}
|
---|
| 87 | ${ATNFLIB}
|
---|
[1958] | 88 | #${CASACORE_LIBRARIES}
|
---|
[1957] | 89 | ${WCSLIB} )
|
---|
| 90 |
|
---|
[1954] | 91 | # install directory
|
---|
| 92 | install( TARGETS ${ASAPLIB}
|
---|
| 93 | LIBRARY DESTINATION ${PYTHON_INSTALL_DIR} )
|
---|