-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakeLists.txt
38 lines (28 loc) · 1.54 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
# Catkin User Guide: http://www.ros.org/doc/groovy/api/catkin/html/user_guide/user_guide.html
# Catkin CMake Standard: http://www.ros.org/doc/groovy/api/catkin/html/user_guide/standards.html
cmake_minimum_required(VERSION 2.8.12)
project(diffdrive_gazebo_plugin)
# Load catkin and all dependencies required for this package
find_package(catkin REQUIRED COMPONENTS gazebo_ros nav_msgs geometry_msgs sensor_msgs)
find_package(Boost REQUIRED COMPONENTS thread)
# Set the build type. Options are:
# Coverage : w/ debug symbols, w/o optimization, w/ code-coverage
# Debug : w/ debug symbols, w/o optimization
# Release : w/o debug symbols, w/ optimization
# RelWithDebInfo : w/ debug symbols, w/ optimization
# MinSizeRel : w/o debug symbols, w/ optimization, stripped binaries
#set(ROS_BUILD_TYPE RelWithDebInfo)
find_package(gazebo REQUIRED)
catkin_package(
DEPENDS Boost
CATKIN_DEPENDS gazebo_ros nav_msgs geometry_msgs sensor_msgs
LIBRARIES gazebo_ros_diffdrive_uos
INCLUDE_DIRS include
)
add_compile_options(${GAZEBO_CXX_FLAGS})
include_directories(${GAZEBO_INCLUDE_DIRS} ${catkin_INCLUDE_DIRS} include)
add_library(gazebo_ros_diffdrive_uos src/gazebo_ros_diffdrive_uos.cpp)
add_dependencies(gazebo_ros_diffdrive_uos ${catkin_EXPORTED_TARGETS})
target_link_libraries(gazebo_ros_diffdrive_uos ${catkin_LIBRARIES} ${Boost_LIBRARIES})
install(TARGETS gazebo_ros_diffdrive_uos LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION})
install(DIRECTORY include/${PROJECT_NAME}/ DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION})