Last change
on this file since 1956 was 1954, checked in by Takeshi Nakazato, 14 years ago |
New Development: Yes
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...
Preliminary version of CMakeLists.txt files.
*NOTE*
Part of library search is hard-coded, so this is not a
complete cross-platform system.
|
File size:
926 bytes
|
Rev | Line | |
---|
[1954] | 1 | ###
|
---|
| 2 | # CMakeLists.txt for libpyrap.so
|
---|
| 3 | ###
|
---|
| 4 |
|
---|
| 5 | # library name is libpyrap.so
|
---|
| 6 | set( PYRAPLIB pyrap )
|
---|
| 7 |
|
---|
| 8 | # root for libpyrap
|
---|
| 9 | set( PYRAPROOT ${ASAP_SOURCE_DIR}/external/libpyrap/pyrap-0.3.2 )
|
---|
| 10 | set( PYRAPDIR ${PYRAPROOT}/pyrap )
|
---|
| 11 | set( MODULE Converters )
|
---|
| 12 |
|
---|
| 13 | # include path
|
---|
| 14 | include_directories( ${PYRAPROOT} )
|
---|
| 15 |
|
---|
| 16 | # link path
|
---|
| 17 | link_directories( ${PYRAPROOT} )
|
---|
| 18 |
|
---|
| 19 | # use numpy
|
---|
| 20 | add_definitions( -DAIPS_USENUMPY )
|
---|
| 21 |
|
---|
| 22 | # source files for libpyrap
|
---|
| 23 | set( PYRAP_SRCS
|
---|
| 24 | ${PYRAPDIR}/${MODULE}/PycArray.cc
|
---|
| 25 | ${PYRAPDIR}/${MODULE}/PycArrayNP.cc
|
---|
| 26 | ${PYRAPDIR}/${MODULE}/PycBasicData.cc
|
---|
| 27 | ${PYRAPDIR}/${MODULE}/PycExcp.cc
|
---|
| 28 | ${PYRAPDIR}/${MODULE}/PycRecord.cc
|
---|
| 29 | ${PYRAPDIR}/${MODULE}/PycValueHolder.cc )
|
---|
| 30 | add_library( ${PYRAPLIB} SHARED ${PYRAP_SRCS} )
|
---|
| 31 | target_link_libraries( ${PYRAPLIB} ${Boost_LIBRARIES} ${PYTHON_LIBRARIES} ${CASACORE_LIBRARIES} )
|
---|
| 32 |
|
---|
| 33 | # install directory
|
---|
| 34 | install( TARGETS ${PYRAPLIB}
|
---|
| 35 | LIBRARY DESTINATION ${LIB_INSTALL_DIR} )
|
---|
Note:
See
TracBrowser
for help on using the repository browser.