2020-03-23 21:44:29 +08:00
|
|
|
#***************************************************************************
|
|
|
|
# _ _ ____ _
|
|
|
|
# Project ___| | | | _ \| |
|
|
|
|
# / __| | | | |_) | |
|
|
|
|
# | (__| |_| | _ <| |___
|
|
|
|
# \___|\___/|_| \_\_____|
|
|
|
|
#
|
2023-01-02 20:51:48 +08:00
|
|
|
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2020-03-23 21:44:29 +08:00
|
|
|
#
|
|
|
|
# This software is licensed as described in the file COPYING, which
|
|
|
|
# you should have received as part of this distribution. The terms
|
2020-11-04 21:02:01 +08:00
|
|
|
# are also available at https://curl.se/docs/copyright.html.
|
2020-03-23 21:44:29 +08:00
|
|
|
#
|
|
|
|
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
|
|
# copies of the Software, and permit persons to whom the Software is
|
|
|
|
# furnished to do so, under the terms of the COPYING file.
|
|
|
|
#
|
|
|
|
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
# KIND, either express or implied.
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: curl
|
2022-05-17 17:16:50 +08:00
|
|
|
#
|
2020-03-23 21:44:29 +08:00
|
|
|
###########################################################################
|
2018-07-18 07:31:51 +08:00
|
|
|
@PACKAGE_INIT@
|
2017-09-10 22:56:16 +08:00
|
|
|
|
2018-10-27 18:23:19 +08:00
|
|
|
include(CMakeFindDependencyMacro)
|
|
|
|
if(@USE_OPENSSL@)
|
|
|
|
find_dependency(OpenSSL @OPENSSL_VERSION_MAJOR@)
|
|
|
|
endif()
|
|
|
|
if(@USE_ZLIB@)
|
|
|
|
find_dependency(ZLIB @ZLIB_VERSION_MAJOR@)
|
2018-07-17 16:13:18 +08:00
|
|
|
endif()
|
2018-10-12 02:55:53 +08:00
|
|
|
|
2018-07-18 07:31:51 +08:00
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/@TARGETS_EXPORT_NAME@.cmake")
|
|
|
|
check_required_components("@PROJECT_NAME@")
|
2023-06-22 17:24:37 +08:00
|
|
|
|
|
|
|
# Alias for either shared or static library
|
2023-09-22 13:48:36 +08:00
|
|
|
if(NOT TARGET @PROJECT_NAME@::libcurl)
|
|
|
|
add_library(@PROJECT_NAME@::libcurl ALIAS @PROJECT_NAME@::@LIB_SELECTED@)
|
|
|
|
endif()
|
2024-06-06 04:35:48 +08:00
|
|
|
|
|
|
|
# For compatibility with CMake's FindCURL.cmake
|
|
|
|
set(CURL_LIBRARIES @PROJECT_NAME@::libcurl)
|
|
|
|
set_and_check(CURL_INCLUDE_DIRS "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@")
|