hunter_add_package(libpcre) find_package(libpcre CONFIG REQUIRED) target_link_libraries(... PkgConfig::libpcre)