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

Last change on this file since 1957 was 1957, checked in by Takeshi Nakazato, 14 years ago

New Development: No

JIRA Issue: Yes CAS-2668

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Adds wcslib, rpfits, cfitsio libraries.
Includes CASA's cmake modules for searching python, cfitsio, and rpfits.
Update dependency.

Test build and sd regression run.
All sd regressions are passed.

File size: 1.6 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
[1957]12include_directories( ${ATNFROOT}
13 ${CFITSIO_INCLUDE_DIR}
14 ${RPFITS_INCLUDE_DIR} )
[1954]15
16# link path
17link_directories( ${ATNFROOT} )
18
19# source files for libpyrap
20set( ATNF_SRCS
21 ${ATNFDIR}/${PKS}/pks_maths.cc
22 ${ATNFDIR}/${PKSIO}/ASTEDataset.cc
23 ${ATNFDIR}/${PKSIO}/ASTEFXDataset.cc
24 ${ATNFDIR}/${PKSIO}/ASTEReader.cc
[1957]25 ${ATNFDIR}/${PKSIO}/ASTEFXReader.cc
[1954]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 )
43add_library( ${ATNFLIB} SHARED ${ATNF_SRCS} )
[1957]44target_link_libraries( ${ATNFLIB}
45 ${CASACORE_LIBRARIES}
46 ${CFITSIO_LIBRARIES}
47 ${RPFITS_LIBRARIES} )
[1954]48
49# install directory
50install( TARGETS ${ATNFLIB}
51 LIBRARY DESTINATION ${LIB_INSTALL_DIR} )
Note: See TracBrowser for help on using the repository browser.