osrf / ros2_serial_example

70 stars 15 forks source link

Added CMake argument to compile messages #70

Closed ahcorde closed 4 years ago

ahcorde commented 4 years ago

In order to avoid the modification of the CMakeLists.txt each time we want to include new messages in the generator. I have included a CMake argument called ROS2_SERIAL_PACKAGES.

colcon build --packages-select ros2_serial_example --cmake-args -DROS2_SERIAL_PKGS="sensor_msgs;px4_msgs"

What do you think @clalancette ?