1@PACKAGE_INIT@ 2 3set_and_check(c-ares_INCLUDE_DIR "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@") 4 5include("${CMAKE_CURRENT_LIST_DIR}/c-ares-config-version.cmake") 6include("${CMAKE_CURRENT_LIST_DIR}/c-ares-targets.cmake") 7 8set(c-ares_LIBRARY c-ares::cares) 9 10if(@CARES_SHARED@) 11 add_library(c-ares::cares_shared INTERFACE IMPORTED) 12 set_target_properties(c-ares::cares_shared PROPERTIES INTERFACE_LINK_LIBRARIES "c-ares::cares") 13 set(c-ares_SHARED_LIBRARY c-ares::cares_shared) 14elseif(@CARES_STATIC@) 15 add_library(c-ares::cares_static INTERFACE IMPORTED) 16 set_target_properties(c-ares::cares_static PROPERTIES INTERFACE_LINK_LIBRARIES "c-ares::cares") 17endif() 18 19if(@CARES_STATIC@) 20 set(c-ares_STATIC_LIBRARY c-ares::cares_static) 21endif() 22