How do you export package dependencies to downstream packages?
First of all, I see that the tutorial for ament_cmake covers this idea. We are supposed to use ament_export_dependencies
, however I still can't seem to get it to work. I feel like I'm missing something simple here.
I put together a small reproducible example here.
Things I've tried:
- Changing exported target to
${PROJECT_NAME}Targets
ingeometry_msgs_arithmetic
andvector_arithmetic
- Adding
HAS_LIBRARY_TARGET
toament_export_targets
ingeometry_msgs_arithmetic
andvector_arithmetic
- Combination of the two above
Requirements:
- Modern CMake approach
Other details:
- Using docker image from
osrf/ros:galactic-desktop