source: trunk/external-alma/atnf/CMakeLists.txt@ 2911

Last change on this file since 2911 was 2872, checked in by Kana Sugimoto, 11 years ago

New Development: Yes

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs:

Put in Release Notes: No

Module(s): asap build with CASA

Description: introduced version numbering (common to casacore and CASA) to shared libraries of asap (_asap.so, libpyrap.so, libatnf.so, and libasap.so) when the package is build as a part of CASA.


File size: 1.9 KB
RevLine 
[1954]1###
2# CMakeLists.txt for libatnf.so
3###
4
5# root for libatnf
6set( ATNFROOT ${ASAP_SOURCE_DIR}/external-alma/ )
7set( ATNFDIR ${ATNFROOT}/atnf )
8set( PKS pks )
9set( PKSIO PKSIO )
10
11# include path
[1961]12include_directories( ${ATNFROOT} )
[1954]13
14# link path
15link_directories( ${ATNFROOT} )
16
[2577]17# source files for libatnf
[1954]18set( 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
[2577]35# ${ATNFDIR}/${PKSIO}/PKSMS2reader.cc
36# ${ATNFDIR}/${PKSIO}/PKSMS2writer.cc
[1954]37 ${ATNFDIR}/${PKSIO}/PKSreader.cc
38 ${ATNFDIR}/${PKSIO}/PKSSDwriter.cc
39 ${ATNFDIR}/${PKSIO}/SDFITSreader.cc
40 ${ATNFDIR}/${PKSIO}/SDFITSwriter.cc )
[2577]41if( PKSMS )
42 set( ATNF_SRCS ${ATNF_SRCS}
43 ${ATNFDIR}/${PKSIO}/PKSMS2reader.cc
44 ${ATNFDIR}/${PKSIO}/PKSMS2writer.cc )
45endif()
46
[1954]47add_library( ${ATNFLIB} SHARED ${ATNF_SRCS} )
[1957]48target_link_libraries( ${ATNFLIB}
49 ${CASACORE_LIBRARIES}
50 ${CFITSIO_LIBRARIES}
[1960]51 ${RPFITS_LIBRARIES}
52 ${DL_LIBRARIES}
53 ${BLAS_LIBRARIES}
54 ${LAPACK_LIBRARIES} )
[1966]55add_dependencies( inst ${ATNFLIB} )
[1954]56
[2872]57if ( DEFINED asap_soversion )
58 set_target_properties( ${ATNFLIB} PROPERTIES SOVERSION ${asap_soversion} )
59endif( )
60
[1954]61# install directory
62install( TARGETS ${ATNFLIB}
63 LIBRARY DESTINATION ${LIB_INSTALL_DIR} )
Note: See TracBrowser for help on using the repository browser.