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
|
---|
12 | include_directories( ${ATNFROOT}
|
---|
13 | ${CFITSIO_INCLUDE_DIR}
|
---|
14 | ${RPFITS_INCLUDE_DIR} )
|
---|
15 |
|
---|
16 | # link path
|
---|
17 | link_directories( ${ATNFROOT} )
|
---|
18 |
|
---|
19 | # source files for libpyrap
|
---|
20 | set( ATNF_SRCS
|
---|
21 | ${ATNFDIR}/${PKS}/pks_maths.cc
|
---|
22 | ${ATNFDIR}/${PKSIO}/ASTEDataset.cc
|
---|
23 | ${ATNFDIR}/${PKSIO}/ASTEFXDataset.cc
|
---|
24 | ${ATNFDIR}/${PKSIO}/ASTEReader.cc
|
---|
25 | ${ATNFDIR}/${PKSIO}/ASTEFXReader.cc
|
---|
26 | ${ATNFDIR}/${PKSIO}/FITSreader.cc
|
---|
27 | ${ATNFDIR}/${PKSIO}/GBTFITSreader.cc
|
---|
28 | ${ATNFDIR}/${PKSIO}/MBFITSreader.cc
|
---|
29 | ${ATNFDIR}/${PKSIO}/MBrecord.cc
|
---|
30 | ${ATNFDIR}/${PKSIO}/NRO45FITSReader.cc
|
---|
31 | ${ATNFDIR}/${PKSIO}/NRO45Reader.cc
|
---|
32 | ${ATNFDIR}/${PKSIO}/NRODataset.cc
|
---|
33 | ${ATNFDIR}/${PKSIO}/NROFITSDataset.cc
|
---|
34 | ${ATNFDIR}/${PKSIO}/NROOTFDataset.cc
|
---|
35 | ${ATNFDIR}/${PKSIO}/NROReader.cc
|
---|
36 | ${ATNFDIR}/${PKSIO}/PKSFITSreader.cc
|
---|
37 | ${ATNFDIR}/${PKSIO}/PKSMS2reader.cc
|
---|
38 | ${ATNFDIR}/${PKSIO}/PKSMS2writer.cc
|
---|
39 | ${ATNFDIR}/${PKSIO}/PKSreader.cc
|
---|
40 | ${ATNFDIR}/${PKSIO}/PKSSDwriter.cc
|
---|
41 | ${ATNFDIR}/${PKSIO}/SDFITSreader.cc
|
---|
42 | ${ATNFDIR}/${PKSIO}/SDFITSwriter.cc )
|
---|
43 | add_library( ${ATNFLIB} SHARED ${ATNF_SRCS} )
|
---|
44 | target_link_libraries( ${ATNFLIB}
|
---|
45 | ${CASACORE_LIBRARIES}
|
---|
46 | ${CFITSIO_LIBRARIES}
|
---|
47 | ${RPFITS_LIBRARIES} )
|
---|
48 |
|
---|
49 | # install directory
|
---|
50 | install( TARGETS ${ATNFLIB}
|
---|
51 | LIBRARY DESTINATION ${LIB_INSTALL_DIR} )
|
---|