ROS2: CMakeList, Command Line Publish, Metapackages [Revised Heading]

Your CMake installs you binary to bin, but ros2 run only looks in the “libexec” folder (actually lib/pkg) for executables. Your binary is just on the PATH, so you don’t need ros2 run to easily execute it.

See our examples for how to install to libexec: