]> defiant.homedns.org Git - ros_roboint.git/blobdiff - CMakeLists.txt
depend robo_explorer_hardware on messages
[ros_roboint.git] / CMakeLists.txt
index 2526ea6f3f8ba6ab168f7a02ebbfc79800fb1a9f..9b9da57e90d13706c04f5665d3155c95dd64a148 100644 (file)
@@ -4,7 +4,7 @@ project(roboint)
 ## Find catkin macros and libraries
 ## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
 ## is used, also find other catkin packages
-find_package(catkin REQUIRED COMPONENTS roscpp rospy std_msgs message_generation urdf)
+find_package(catkin REQUIRED COMPONENTS roscpp rospy std_msgs message_generation urdf controller_manager)
 
 ## System dependencies are found with CMake's conventions
 # find_package(Boost REQUIRED COMPONENTS system)
@@ -38,6 +38,7 @@ add_message_files(
 generate_messages(
   DEPENDENCIES
   std_msgs
+  roboint
 )
 
 ###################################
@@ -73,16 +74,19 @@ include_directories(include
 ## Declare a cpp executable
 # add_executable(roboint_node src/roboint_node.cpp)
 add_executable(libft_adapter src/libft_adapter.cpp)
+add_executable(robo_explorer_hardware src/robo_explorer_hardware.cpp)
 
 ## Add cmake target dependencies of the executable/library
 ## as an example, message headers may need to be generated before nodes
 add_dependencies(libft_adapter roboint_gencpp)
+add_dependencies(robo_explorer_hardware roboint_gencpp)
 
 ## Specify libraries to link a library or executable target against
 # target_link_libraries(roboint_node
 #   ${catkin_LIBRARIES}
 # )
 target_link_libraries(libft_adapter ${catkin_LIBRARIES} roboint)
+target_link_libraries(robo_explorer_hardware ${catkin_LIBRARIES})
 
 #############
 ## Install ##