hunter_add_package(RapidXML) find_package(RapidXML REQUIRED CONFIG) target_link_libraries(foo RapidXML::RapidXML)