ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You first need to use add_library() in package A. In package B you will need an add_executable().

After that is done you need to tell CMake about the dependency between both using:

add_dependencies(myexecutable ${catkin_EXPORTED_TARGETS})

You first need to use add_library() in package A. In package B you will need an add_executable().

After that is done you need to tell CMake about the dependency between both using:

add_dependencies(myexecutable ${catkin_EXPORTED_TARGETS})

Please consider reading the catkin tutorials as well as documentation: http://wiki.ros.org/catkin/Tutorials and http://docs.ros.org/api/catkin/html/