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

Revision history [back]

The package.xml isn't really used much during the build, what you are looking for is to add dependencies in your CMakeLists.txt. For instance, if you have a target called foo, and a package named my_msgs, you would "add_dependencies":

add_executable(foo src/foo.cpp)
# other link, etc commands
add_dependencies(foo my_msgs_generate_messages_cpp)

This will then cause CMake to build your messages before your node.