The package ryu provides CMake targets: find_package(ryu CONFIG REQUIRED) target_link_libraries(main PRIVATE RYU::ryu)