1*6236dae4SAndroid Build Coastguard Worker#*************************************************************************** 2*6236dae4SAndroid Build Coastguard Worker# _ _ ____ _ 3*6236dae4SAndroid Build Coastguard Worker# Project ___| | | | _ \| | 4*6236dae4SAndroid Build Coastguard Worker# / __| | | | |_) | | 5*6236dae4SAndroid Build Coastguard Worker# | (__| |_| | _ <| |___ 6*6236dae4SAndroid Build Coastguard Worker# \___|\___/|_| \_\_____| 7*6236dae4SAndroid Build Coastguard Worker# 8*6236dae4SAndroid Build Coastguard Worker# Copyright (C) Daniel Stenberg, <[email protected]>, et al. 9*6236dae4SAndroid Build Coastguard Worker# 10*6236dae4SAndroid Build Coastguard Worker# This software is licensed as described in the file COPYING, which 11*6236dae4SAndroid Build Coastguard Worker# you should have received as part of this distribution. The terms 12*6236dae4SAndroid Build Coastguard Worker# are also available at https://curl.se/docs/copyright.html. 13*6236dae4SAndroid Build Coastguard Worker# 14*6236dae4SAndroid Build Coastguard Worker# You may opt to use, copy, modify, merge, publish, distribute and/or sell 15*6236dae4SAndroid Build Coastguard Worker# copies of the Software, and permit persons to whom the Software is 16*6236dae4SAndroid Build Coastguard Worker# furnished to do so, under the terms of the COPYING file. 17*6236dae4SAndroid Build Coastguard Worker# 18*6236dae4SAndroid Build Coastguard Worker# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 19*6236dae4SAndroid Build Coastguard Worker# KIND, either express or implied. 20*6236dae4SAndroid Build Coastguard Worker# 21*6236dae4SAndroid Build Coastguard Worker# SPDX-License-Identifier: curl 22*6236dae4SAndroid Build Coastguard Worker# 23*6236dae4SAndroid Build Coastguard Worker########################################################################### 24*6236dae4SAndroid Build Coastguard Worker@PACKAGE_INIT@ 25*6236dae4SAndroid Build Coastguard Worker 26*6236dae4SAndroid Build Coastguard Workerif(UNIX OR VCPKG_TOOLCHAIN OR (MINGW AND NOT CMAKE_CROSSCOMPILING)) # Keep in sync with root CMakeLists.txt 27*6236dae4SAndroid Build Coastguard Worker set(_curl_use_pkgconfig_default ON) 28*6236dae4SAndroid Build Coastguard Workerelse() 29*6236dae4SAndroid Build Coastguard Worker set(_curl_use_pkgconfig_default OFF) 30*6236dae4SAndroid Build Coastguard Workerendif() 31*6236dae4SAndroid Build Coastguard Workeroption(CURL_USE_PKGCONFIG "Enable pkg-config to detect @PROJECT_NAME@ dependencies" ${_curl_use_pkgconfig_default}) 32*6236dae4SAndroid Build Coastguard Worker 33*6236dae4SAndroid Build Coastguard Workerinclude(CMakeFindDependencyMacro) 34*6236dae4SAndroid Build Coastguard Workerif("@USE_OPENSSL@") 35*6236dae4SAndroid Build Coastguard Worker find_dependency(OpenSSL "@OPENSSL_VERSION_MAJOR@") 36*6236dae4SAndroid Build Coastguard Workerendif() 37*6236dae4SAndroid Build Coastguard Workerif("@HAVE_LIBZ@") 38*6236dae4SAndroid Build Coastguard Worker find_dependency(ZLIB "@ZLIB_VERSION_MAJOR@") 39*6236dae4SAndroid Build Coastguard Workerendif() 40*6236dae4SAndroid Build Coastguard Worker 41*6236dae4SAndroid Build Coastguard Workerinclude("${CMAKE_CURRENT_LIST_DIR}/@[email protected]") 42*6236dae4SAndroid Build Coastguard Workercheck_required_components("@PROJECT_NAME@") 43*6236dae4SAndroid Build Coastguard Worker 44*6236dae4SAndroid Build Coastguard Worker# Alias for either shared or static library 45*6236dae4SAndroid Build Coastguard Workerif(NOT TARGET @PROJECT_NAME@::libcurl) 46*6236dae4SAndroid Build Coastguard Worker add_library(@PROJECT_NAME@::libcurl ALIAS @PROJECT_NAME@::@LIB_SELECTED@) 47*6236dae4SAndroid Build Coastguard Workerendif() 48*6236dae4SAndroid Build Coastguard Worker 49*6236dae4SAndroid Build Coastguard Worker# For compatibility with CMake's FindCURL.cmake 50*6236dae4SAndroid Build Coastguard Workerset(CURL_LIBRARIES @PROJECT_NAME@::libcurl) 51*6236dae4SAndroid Build Coastguard Workerset_and_check(CURL_INCLUDE_DIRS "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@") 52