hunter_add_package(libogg) find_package(libogg CONFIG REQUIRED) add_executable(foo foo.cpp) target_link_libraries(foo libogg::ogg)