Fix dependency on gazebo in twil_gazebo_ros_control. indigo
authorWalter Fetter Lages <w.fetter@ieee.org>
Mon, 26 Nov 2018 18:24:45 +0000 (16:24 -0200)
committerWalter Fetter Lages <w.fetter@ieee.org>
Mon, 26 Nov 2018 18:24:45 +0000 (16:24 -0200)
twil_gazebo_ros_control/CMakeLists.txt

index 7d35fd6..d0ff38c 100644 (file)
@@ -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}
 )
 
 #############