-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
73 lines (62 loc) · 1.28 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
cmake_minimum_required(VERSION 2.8.3)
project(robocare_motion_planner CXX)
add_compile_options(-std=c++11)
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
sensor_msgs
trac_ik_lib
kdl_parser
)
LIST( APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/../rbdl" )
LIST( APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMake" )
INCLUDE(CMake/FindRBDL.cmake)
find_package (Boost REQUIRED)
find_package(Eigen3 REQUIRED)
find_package(RBDL REQUIRED)
catkin_package(
CATKIN_DEPENDS
kdl_parser
trac_ik_lib
)
link_directories(${Boost_LIBRARY_DIR})
set(SRCS
src/Controller.cpp
src/RRT_planner2.cpp
src/util.cpp
src/ROS_bridge.cpp
src/NHRRT_planner.cpp
)
set(HEADS
include/Controller.h
include/fwd.h
include/NodeTree.h
include/RRT_planner2.h
include/RRTNode.h
include/util.h
include/ROS_bridge.hpp
include/NHRRT_planner.h
)
add_library(mobile_manipulator_controller
${SRCS}
${HEADS}
)
include_directories(
include
${catkin_INCLUDE_DIRS}
${Boost_INCLUDE_DIR}
${EIGEN3_INCLUDE_DIRS}
${RBDL_INCLUDE_DIRS}
)
add_definitions (-Ddof=7)
add_executable(${PROJECT_NAME}
src/Main.cpp
)
target_link_libraries(${PROJECT_NAME}
mobile_manipulator_controller
${catkin_LIBRARIES}
${Boost_LIBRARIES}
rbdl
trajectory
)