hunter_add_package(cpuinfo) find_package(cpuinfo CONFIG REQUIRED) add_executable(test example.cpp) target_link_libraries(test cpuinfo::cpuinfo)