-cmake_minimum_required(VERSION 2.8.3)
+cmake_minimum_required(VERSION 2.8.6 FATAL_ERROR)
project(roboticsgroup_gazebo_plugins)
# Load catkin and all dependencies required for this package
-find_package(catkin REQUIRED COMPONENTS
- roscpp
+find_package(catkin REQUIRED COMPONENTS
+ roscpp
gazebo_ros
control_toolbox
)
# Depend on system install of Gazebo
find_package(gazebo REQUIRED)
-if(${GAZEBO_MAJOR_VERSION} GREATER "5")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")
-endif()
+# Gazebo cxx flags should have all the required C++ flags
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GAZEBO_CXX_FLAGS}")
find_package(Boost REQUIRED)
catkin_package(
- DEPENDS
- roscpp
+ DEPENDS
+ roscpp
gazebo_ros
control_toolbox
)
add_library(roboticsgroup_gazebo_disable_link_plugin src/disable_link_plugin.cpp)
target_link_libraries(roboticsgroup_gazebo_disable_link_plugin ${catkin_LIBRARIES} ${GAZEBO_LIBRARIES})
-