hunter_add_package(glib) find_package(glib-2.0 CONFIG REQUIRED) target_link_libraries(... PkgConfig::glib-2.0)