rmqcpp provides CMake targets: find_package(rmqcpp REQUIRED) target_link_libraries(main PRIVATE rmqcpp::rmq)