This is a proposal to fix #716.
This PR introduces a new file ros2.cmake.
It provides a macro _install_project_ros2_ament_files to generate files for the ROS2 ament system.
This macro is called in setup_project_finalize() in base.cmake.
The generation works if the variable BUILDING_ROS2_PACKAGE is set (to TRUE
for instance).
pre-commit was run over the PR.
Tested against unittest.
This is a proposal to fix #716. This PR introduces a new file ros2.cmake. It provides a macro _install_project_ros2_ament_files to generate files for the ROS2 ament system. This macro is called in setup_project_finalize() in base.cmake. The generation works if the variable BUILDING_ROS2_PACKAGE is set (to TRUE for instance).
pre-commit was run over the PR. Tested against unittest.