-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
45 lines (36 loc) · 1.25 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
cmake_minimum_required(VERSION 2.8.3)
project(gazebo_ros_actor_plugin)
add_compile_options(-std=c++11)
find_package(catkin REQUIRED COMPONENTS
gazebo_ros
gazebo_plugins
geometry_msgs
nav_msgs
)
find_package(gazebo REQUIRED)
catkin_package(
INCLUDE_DIRS
include
LIBRARIES
gazebo_ros_actor_plugin
CATKIN_DEPENDS
gazebo_ros
gazebo_plugins
geometry_msgs
nav_msgs
)
include_directories(
include
${catkin_INCLUDE_DIRS}
${GAZEBO_INCLUDE_DIRS}
)
link_directories(${GAZEBO_LIBRARY_DIRS})
list(APPEND CMAKE_CXX_FLAGS "${GAZEBO_CXX_FLAGS}")
add_library(gazebo_ros_path_follow_actor src/gazebo_ros_path_follow_actor.cpp)
target_link_libraries(gazebo_ros_path_follow_actor ${catkin_LIBRARIES} ${GAZEBO_LIBRARIES})
add_library(gazebo_ros_robot_follow_actor src/gazebo_ros_robot_follow_actor.cpp)
target_link_libraries(gazebo_ros_robot_follow_actor ${catkin_LIBRARIES} ${GAZEBO_LIBRARIES})
add_library(gazebo_ros_temporary_stop_actor src/gazebo_ros_temporary_stop_actor.cpp)
target_link_libraries(gazebo_ros_temporary_stop_actor ${catkin_LIBRARIES} ${GAZEBO_LIBRARIES})
add_library(gazebo_ros_deviate_path_actor src/gazebo_ros_deviate_path_actor.cpp)
target_link_libraries(gazebo_ros_deviate_path_actor ${catkin_LIBRARIES} ${GAZEBO_LIBRARIES})