ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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})
2 | No.2 Revision |
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/