source: trunk/external/libpyrap/CMakeLists.txt @ 1954

Last change on this file since 1954 was 1954, checked in by Takeshi Nakazato, 13 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
Line 
1###
2# CMakeLists.txt for libpyrap.so
3###
4
5# library name is libpyrap.so
6set( PYRAPLIB pyrap )
7
8# root for libpyrap
9set( PYRAPROOT ${ASAP_SOURCE_DIR}/external/libpyrap/pyrap-0.3.2 )
10set( PYRAPDIR ${PYRAPROOT}/pyrap )
11set( MODULE Converters )
12
13# include path
14include_directories( ${PYRAPROOT} )
15
16# link path
17link_directories( ${PYRAPROOT} )
18
19# use numpy
20add_definitions( -DAIPS_USENUMPY )
21
22# source files for libpyrap
23set( 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 )
30add_library( ${PYRAPLIB} SHARED ${PYRAP_SRCS} )
31target_link_libraries( ${PYRAPLIB} ${Boost_LIBRARIES} ${PYTHON_LIBRARIES} ${CASACORE_LIBRARIES} )
32
33# install directory
34install( TARGETS ${PYRAPLIB}
35         LIBRARY DESTINATION ${LIB_INSTALL_DIR} )
Note: See TracBrowser for help on using the repository browser.