hunter_add_package(SDL_net) find_package(SDL_net CONFIG REQUIRED) #... target_link_libraries(foo SDL_net::SDL_net)