• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) The c-ares project and its contributors
2# SPDX-License-Identifier: MIT
3
4@PACKAGE_INIT@
5
6set_and_check(c-ares_INCLUDE_DIR "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@")
7
8include("${CMAKE_CURRENT_LIST_DIR}/c-ares-config-version.cmake")
9include("${CMAKE_CURRENT_LIST_DIR}/c-ares-targets.cmake")
10
11set(c-ares_LIBRARY c-ares::cares)
12
13if(@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)
19endif()
20
21if(@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)
27endif()
28