Revision 808, 0.6 kB
(checked in by smidl, 15 years ago)
|
python bindings...
|
Line | |
---|
1 | # Matlab toolbox of functions from BDM |
---|
2 | |
---|
3 | cmake_minimum_required(VERSION 2.6) |
---|
4 | PROJECT(PyBDM) |
---|
5 | |
---|
6 | # Link it to BDM |
---|
7 | SET(BDM_SOURCE_DIR "${CMAKE_SOURCE_DIR}/../../library") |
---|
8 | SET(CMAKE_MODULE_PATH "${BDM_SOURCE_DIR}/system") |
---|
9 | |
---|
10 | # Load BDM environment |
---|
11 | INCLUDE(SetBdmEnv) |
---|
12 | Find_Package(Boost REQUIRED) |
---|
13 | Find_Package(PythonLibs REQUIRED) |
---|
14 | |
---|
15 | include_directories (${BDM_SOURCE_DIR}/bdm ${Boost_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS}) |
---|
16 | link_directories (${BDM_SOURCE_DIR}/bdm) |
---|
17 | |
---|
18 | add_library(itpp_ext SHARED itpp_ext.cpp) |
---|
19 | TARGET_LINK_LIBRARIES(itpp_ext boost_python-mt itpp) |
---|
20 | |
---|
21 | |
---|
22 | #add_library(sqmat_ext SHARED sqmat_ext.cpp) |
---|
23 | #TARGET_LINK_LIBRARIES(sqmat_ext bdm boost_python-mt itpp) |
---|