[1954] | 1 | ###
|
---|
| 2 | # CMakeLists.txt for libatnf.so
|
---|
| 3 | ###
|
---|
| 4 |
|
---|
| 5 | # root for libatnf
|
---|
| 6 | set( ATNFROOT ${ASAP_SOURCE_DIR}/external-alma/ )
|
---|
| 7 | set( ATNFDIR ${ATNFROOT}/atnf )
|
---|
| 8 | set( PKS pks )
|
---|
| 9 | set( PKSIO PKSIO )
|
---|
| 10 |
|
---|
| 11 | # include path
|
---|
[1961] | 12 | include_directories( ${ATNFROOT} )
|
---|
[1954] | 13 |
|
---|
| 14 | # link path
|
---|
| 15 | link_directories( ${ATNFROOT} )
|
---|
| 16 |
|
---|
| 17 | # source files for libpyrap
|
---|
| 18 | set( ATNF_SRCS
|
---|
| 19 | ${ATNFDIR}/${PKS}/pks_maths.cc
|
---|
| 20 | ${ATNFDIR}/${PKSIO}/ASTEDataset.cc
|
---|
| 21 | ${ATNFDIR}/${PKSIO}/ASTEFXDataset.cc
|
---|
| 22 | ${ATNFDIR}/${PKSIO}/ASTEReader.cc
|
---|
[1957] | 23 | ${ATNFDIR}/${PKSIO}/ASTEFXReader.cc
|
---|
[1954] | 24 | ${ATNFDIR}/${PKSIO}/FITSreader.cc
|
---|
| 25 | ${ATNFDIR}/${PKSIO}/GBTFITSreader.cc
|
---|
| 26 | ${ATNFDIR}/${PKSIO}/MBFITSreader.cc
|
---|
| 27 | ${ATNFDIR}/${PKSIO}/MBrecord.cc
|
---|
| 28 | ${ATNFDIR}/${PKSIO}/NRO45FITSReader.cc
|
---|
| 29 | ${ATNFDIR}/${PKSIO}/NRO45Reader.cc
|
---|
| 30 | ${ATNFDIR}/${PKSIO}/NRODataset.cc
|
---|
| 31 | ${ATNFDIR}/${PKSIO}/NROFITSDataset.cc
|
---|
| 32 | ${ATNFDIR}/${PKSIO}/NROOTFDataset.cc
|
---|
| 33 | ${ATNFDIR}/${PKSIO}/NROReader.cc
|
---|
| 34 | ${ATNFDIR}/${PKSIO}/PKSFITSreader.cc
|
---|
| 35 | ${ATNFDIR}/${PKSIO}/PKSMS2reader.cc
|
---|
| 36 | ${ATNFDIR}/${PKSIO}/PKSMS2writer.cc
|
---|
| 37 | ${ATNFDIR}/${PKSIO}/PKSreader.cc
|
---|
| 38 | ${ATNFDIR}/${PKSIO}/PKSSDwriter.cc
|
---|
| 39 | ${ATNFDIR}/${PKSIO}/SDFITSreader.cc
|
---|
| 40 | ${ATNFDIR}/${PKSIO}/SDFITSwriter.cc )
|
---|
| 41 | add_library( ${ATNFLIB} SHARED ${ATNF_SRCS} )
|
---|
[1957] | 42 | target_link_libraries( ${ATNFLIB}
|
---|
| 43 | ${CASACORE_LIBRARIES}
|
---|
| 44 | ${CFITSIO_LIBRARIES}
|
---|
[1960] | 45 | ${RPFITS_LIBRARIES}
|
---|
| 46 | ${DL_LIBRARIES}
|
---|
| 47 | ${BLAS_LIBRARIES}
|
---|
| 48 | ${LAPACK_LIBRARIES} )
|
---|
[1966] | 49 | add_dependencies( inst ${ATNFLIB} )
|
---|
[1954] | 50 |
|
---|
| 51 | # install directory
|
---|
| 52 | install( TARGETS ${ATNFLIB}
|
---|
| 53 | LIBRARY DESTINATION ${LIB_INSTALL_DIR} )
|
---|