c-ares-config.cmake.in (886B)
1 # Copyright (C) The c-ares project and its contributors 2 # SPDX-License-Identifier: MIT 3 4 @PACKAGE_INIT@ 5 6 set_and_check(c-ares_INCLUDE_DIR "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@") 7 8 include("${CMAKE_CURRENT_LIST_DIR}/c-ares-config-version.cmake") 9 include("${CMAKE_CURRENT_LIST_DIR}/c-ares-targets.cmake") 10 11 set(c-ares_LIBRARY c-ares::cares) 12 13 if(@CARES_SHARED@) 14 if(NOT TARGET c-ares::cares_shared) 15 add_library(c-ares::cares_shared INTERFACE IMPORTED) 16 set_target_properties(c-ares::cares_shared PROPERTIES INTERFACE_LINK_LIBRARIES "c-ares::cares") 17 endif() 18 set(c-ares_SHARED_LIBRARY c-ares::cares_shared) 19 endif() 20 21 if(@CARES_STATIC@) 22 if(NOT TARGET c-ares::cares_static) 23 add_library(c-ares::cares_static INTERFACE IMPORTED) 24 set_target_properties(c-ares::cares_static PROPERTIES INTERFACE_LINK_LIBRARIES "c-ares::cares") 25 endif() 26 set(c-ares_STATIC_LIBRARY c-ares::cares_static) 27 endif()