Last change
on this file since 3081 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.2 KB
|
Rev | Line | |
---|
[1954] | 1 | ###
|
---|
| 2 | # CMakeLists.txt for libpyrap.so
|
---|
| 3 | ###
|
---|
| 4 |
|
---|
| 5 | # root for libpyrap
|
---|
| 6 | set( PYRAPROOT ${ASAP_SOURCE_DIR}/external/libpyrap/pyrap-0.3.2 )
|
---|
| 7 | set( PYRAPDIR ${PYRAPROOT}/pyrap )
|
---|
| 8 | set( MODULE Converters )
|
---|
| 9 |
|
---|
| 10 | # include path
|
---|
[1961] | 11 | include_directories( ${PYRAPROOT} )
|
---|
[1954] | 12 |
|
---|
| 13 | # link path
|
---|
| 14 | link_directories( ${PYRAPROOT} )
|
---|
| 15 |
|
---|
| 16 | # use numpy
|
---|
| 17 | add_definitions( -DAIPS_USENUMPY )
|
---|
| 18 |
|
---|
| 19 | # source files for libpyrap
|
---|
| 20 | set( PYRAP_SRCS
|
---|
| 21 | ${PYRAPDIR}/${MODULE}/PycArray.cc
|
---|
| 22 | ${PYRAPDIR}/${MODULE}/PycArrayNP.cc
|
---|
| 23 | ${PYRAPDIR}/${MODULE}/PycBasicData.cc
|
---|
| 24 | ${PYRAPDIR}/${MODULE}/PycExcp.cc
|
---|
| 25 | ${PYRAPDIR}/${MODULE}/PycRecord.cc
|
---|
| 26 | ${PYRAPDIR}/${MODULE}/PycValueHolder.cc )
|
---|
[1957] | 27 |
|
---|
[1954] | 28 | add_library( ${PYRAPLIB} SHARED ${PYRAP_SRCS} )
|
---|
[1957] | 29 | target_link_libraries( ${PYRAPLIB}
|
---|
| 30 | ${Boost_LIBRARIES}
|
---|
| 31 | ${PYTHON_LIBRARIES}
|
---|
[1960] | 32 | ${CASACORE_LIBRARIES}
|
---|
| 33 | ${DL_LIBRARIES}
|
---|
| 34 | ${BLAS_LIBRARIES}
|
---|
| 35 | ${LAPACK_LIBRARIES} )
|
---|
[1966] | 36 | add_dependencies( inst ${PYRAPLIB} )
|
---|
[1954] | 37 |
|
---|
[2872] | 38 | if ( DEFINED asap_soversion )
|
---|
| 39 | set_target_properties( ${PYRAPLIB} PROPERTIES SOVERSION ${asap_soversion} )
|
---|
| 40 | endif( )
|
---|
| 41 |
|
---|
[1954] | 42 | # install directory
|
---|
| 43 | install( TARGETS ${PYRAPLIB}
|
---|
| 44 | LIBRARY DESTINATION ${LIB_INSTALL_DIR} )
|
---|
Note:
See
TracBrowser
for help on using the repository browser.