velodyne-decoder provides CMake targets: find_package(velodyne_decoder CONFIG REQUIRED) target_link_libraries(main PRIVATE velodyne_decoder::velodyne_decoder)