source: branches/hpc34/external/libpyrap/CMakeLists.txt@ 3136

Last change on this file since 3136 was 1966, checked in by Takeshi Nakazato, 14 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...

All libraries, executables, programs are installed by default.


File size: 1.1 KB
Line 
1###
2# CMakeLists.txt for libpyrap.so
3###
4
5# root for libpyrap
6set( PYRAPROOT ${ASAP_SOURCE_DIR}/external/libpyrap/pyrap-0.3.2 )
7set( PYRAPDIR ${PYRAPROOT}/pyrap )
8set( MODULE Converters )
9
10# include path
11include_directories( ${PYRAPROOT} )
12
13# link path
14link_directories( ${PYRAPROOT} )
15
16# use numpy
17add_definitions( -DAIPS_USENUMPY )
18
19# source files for libpyrap
20set( 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 )
27
28add_library( ${PYRAPLIB} SHARED ${PYRAP_SRCS} )
29target_link_libraries( ${PYRAPLIB}
30 ${Boost_LIBRARIES}
31 ${PYTHON_LIBRARIES}
32 ${CASACORE_LIBRARIES}
33 ${DL_LIBRARIES}
34 ${BLAS_LIBRARIES}
35 ${LAPACK_LIBRARIES} )
36add_dependencies( inst ${PYRAPLIB} )
37
38# install directory
39install( TARGETS ${PYRAPLIB}
40 LIBRARY DESTINATION ${LIB_INSTALL_DIR} )
Note: See TracBrowser for help on using the repository browser.