-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
45 lines (37 loc) · 906 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
cmake_minimum_required(VERSION 3.0.2)
project(dwa_planner)
add_compile_options(-std=c++11)
set (CMAKE_CXX_FLAGS -O3)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
geometry_msgs
nav_msgs
visualization_msgs
roscpp
rospy
sensor_msgs
std_msgs
tf
)
set(CMAKE_PREFIX_PATH /usr/local/lib/cmake)
find_package(Eigen3 REQUIRED)
catkin_package(
#INCLUDE_DIRS include
#LIBRARIES dwa_planner
#${EIGEN3_INCLUDE_DIRS}
)
include_directories(
include
${catkin_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIRS}
)
###########
## Build ##
###########
add_executable(planner_node src/node.cpp src/planner.cpp)
add_dependencies(planner_node ${dwa_planner_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(planner_node
${catkin_LIBRARIES}
)