source: branches/asap4casa3.1.0/external/libpyrap/CMakeLists.txt @ 1952

Last change on this file since 1952 was 1952, checked in by Takeshi Nakazato, 13 years ago

New Development: Yes

JIRA Issue: Yes CAS-2668

Ready for Test: No

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: No

Module(s): Module Names change impacts.

Description: Describe your changes here...

First version of CMakeLists.txt for cmake system.
This is preliminary version that search path for some key external
libraries are hard coded. However, overall design would be fixed so far.


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.