|
Last change
on this file since 2584 was 1969, checked in by Takeshi Nakazato, 15 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...
Add necessary CMakeLists.txt's for standalone build.
|
|
File size:
1.2 KB
|
| Line | |
|---|
| 1 | ###
|
|---|
| 2 | # CMakeLists.txt for libatnf.so
|
|---|
| 3 | ###
|
|---|
| 4 |
|
|---|
| 5 | # root for libatnf
|
|---|
| 6 | set( ATNFROOT ${ASAP_SOURCE_DIR}/external/ )
|
|---|
| 7 | set( ATNFDIR ${ATNFROOT}/atnf )
|
|---|
| 8 | set( PKS pks )
|
|---|
| 9 | set( PKSIO PKSIO )
|
|---|
| 10 |
|
|---|
| 11 | # include path
|
|---|
| 12 | include_directories( ${ATNFROOT} )
|
|---|
| 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}/PKSmsg.cc
|
|---|
| 21 | ${ATNFDIR}/${PKSIO}/FITSreader.cc
|
|---|
| 22 | ${ATNFDIR}/${PKSIO}/MBFITSreader.cc
|
|---|
| 23 | ${ATNFDIR}/${PKSIO}/MBrecord.cc
|
|---|
| 24 | ${ATNFDIR}/${PKSIO}/PKSFITSreader.cc
|
|---|
| 25 | ${ATNFDIR}/${PKSIO}/PKSMS2reader.cc
|
|---|
| 26 | ${ATNFDIR}/${PKSIO}/PKSMS2writer.cc
|
|---|
| 27 | ${ATNFDIR}/${PKSIO}/PKSreader.cc
|
|---|
| 28 | ${ATNFDIR}/${PKSIO}/PKSSDwriter.cc
|
|---|
| 29 | ${ATNFDIR}/${PKSIO}/SDFITSreader.cc
|
|---|
| 30 | ${ATNFDIR}/${PKSIO}/SDFITSwriter.cc )
|
|---|
| 31 | add_library( ${ATNFLIB} SHARED ${ATNF_SRCS} )
|
|---|
| 32 | target_link_libraries( ${ATNFLIB}
|
|---|
| 33 | ${CASACORE_LIBRARIES}
|
|---|
| 34 | ${CFITSIO_LIBRARIES}
|
|---|
| 35 | ${RPFITS_LIBRARIES}
|
|---|
| 36 | ${DL_LIBRARIES}
|
|---|
| 37 | ${BLAS_LIBRARIES}
|
|---|
| 38 | ${LAPACK_LIBRARIES} )
|
|---|
| 39 | add_dependencies( inst ${ATNFLIB} )
|
|---|
| 40 |
|
|---|
| 41 | # install directory
|
|---|
| 42 | install( TARGETS ${ATNFLIB}
|
|---|
| 43 | LIBRARY DESTINATION ${LIB_INSTALL_DIR} )
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.