1 2 3 4 5
fastdds provides CMake targets: find_package(fastdds CONFIG REQUIRED) target_link_libraries(main PRIVATE fastdds)