hunter_add_package(JsonSpirit) find_package(JsonSpirit CONFIG REQUIRED) target_link_libraries(foo json)