-
Notifications
You must be signed in to change notification settings - Fork 4
/
catkin.cmake
44 lines (38 loc) · 952 Bytes
/
catkin.cmake
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
cmake_minimum_required(VERSION 2.8.3)
# catkin
find_package(catkin REQUIRED COMPONENTS openrave_catkin)
catkin_package()
catkin_python_setup()
# C++11 flags for GTSAM 4.0
set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
# find OpenRAVE
find_package(OpenRAVE REQUIRED)
include_directories(${catkin_INCLUDE_DIRS})
# find GTSAM
find_package(GTSAM REQUIRED)
include_directories(${GTSAM_INCLUDE_DIR})
set(GTSAM_LIBRARIES gtsam)
# find GPMP2
find_package(gpmp2 REQUIRED)
include_directories(${gpmp2_INCLUDE_DIR})
set(gpmp2_LIBRARIES gpmp2)
openrave_plugin("${PROJECT_NAME}_plugin"
src/orgpmp2.cpp
src/orgpmp2_mod.cpp
src/orgpmp2_kdata.cpp
src/orcwrap.cpp
src/utils/grid.c
src/utils/grid_flood.c
src/utils/kin.c
src/utils/mat.c
src/utils/util_shparse.c
)
target_link_libraries("${PROJECT_NAME}_plugin"
blas
lapacke
lapack
gsl
${GTSAM_LIBRARIES}
${gpmp2_LIBRARIES}
${catkin_LIBRARIES}
)