ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You can use add_custom_target()
, e.g.:
# Declare a custom target that will do the copy when the 'all' target fires
add_custom_target(deploy ALL
COMMAND cp $(CMAKE_SOURCE_DIR)/undeployed /tmp/deployed)
# Declare a dependency on the 'rosbuild_precompile' target, to ensure
# that message generation happens before we copy.
add_dependencies(deploy rosbuild_precompile)