From 23c2df8cc219eda35ab6814ebaa9afe1ed719aee Mon Sep 17 00:00:00 2001 From: Walter Fetter Lages Date: Mon, 26 Nov 2018 16:24:45 -0200 Subject: [PATCH] Fix dependency on gazebo in twil_gazebo_ros_control. --- twil_gazebo_ros_control/CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/twil_gazebo_ros_control/CMakeLists.txt b/twil_gazebo_ros_control/CMakeLists.txt index 7d35fd6..d0ff38c 100644 --- a/twil_gazebo_ros_control/CMakeLists.txt +++ b/twil_gazebo_ros_control/CMakeLists.txt @@ -5,7 +5,7 @@ project(twil_gazebo_ros_control) ## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz) ## is used, also find other catkin packages find_package(catkin REQUIRED COMPONENTS - gazebo +# gazebo gazebo_ros_control twil_description control_toolbox @@ -13,7 +13,7 @@ find_package(catkin REQUIRED COMPONENTS ## System dependencies are found with CMake's conventions # find_package(Boost REQUIRED COMPONENTS system) - +find_package(gazebo REQUIRED) ## Uncomment this if the package has a setup.py. This macro ensures ## modules and global scripts declared therein get installed @@ -84,7 +84,7 @@ catkin_package( # INCLUDE_DIRS include # LIBRARIES twil_gazebo_ros_control CATKIN_DEPENDS controller_manager pluginlib gazebo_ros_control twil_description control_toolbox -# DEPENDS system_lib + DEPENDS gazebo ) ########### @@ -115,6 +115,7 @@ add_library(twil_gazebo_ros_control ## Specify libraries to link a library or executable target against target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} + ${GAZEBO_LIBRARIES} ) ############# -- 2.12.0