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