joystick_drivers
joystick_drivers copied to clipboard
Fix spacenav from-source build with missing dependencies
Using a variable for dependencies is cleaner for linking and export.
Fixes this build error:
--- stderr: spacenav
CMake Error at CMakeLists.txt:22 (add_library):
Target "spacenav" links to target "rclcpp_components::component" but the
target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?