forked from ethz-asl/numpy_eigen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
28 lines (21 loc) · 820 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
cmake_minimum_required(VERSION 2.8.3)
project(numpy_eigen)
find_package(catkin_simple REQUIRED)
catkin_simple(ALL_DEPS_REQUIRED)
find_package(Boost REQUIRED COMPONENTS system)
include_directories(include ${Boost_INCLUDE_DIRS})
include_directories("${PROJECT_SOURCE_DIR}/include/numpy_eigen")
add_definitions(-std=c++0x -D__STRICT_ANSI__)
INCLUDE(src/autogen_files.cmake)
add_python_export_library(${PROJECT_NAME}
${PROJECT_SOURCE_DIR}/python/${PROJECT_NAME} ${AUTOGEN_FILES}
)
target_link_libraries(${PROJECT_NAME} ${Boost_LIBRARIES})
INCLUDE(src/autogen_test_files.cmake)
add_python_export_library(${PROJECT_NAME}_test
${PROJECT_SOURCE_DIR}/python/${PROJECT_NAME} ${AUTOGEN_TEST_FILES}
)
## Add nosetest based cpp test target.
catkin_add_nosetests(test/numpy_eigen_tests.py)
cs_install()
cs_export()