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

A more modern way (we almost have 2022) would be:

add_dependencies(name_of_exe ${${PROJECT_NAME}_EXPORTED_TARGETS})

This also avoids retyping the project name :) Official docs: Here