cmake/Utilities/cmcurl/CMake/curl-config.cmake.in

41 lines
1.5 KiB
CMake
Raw Normal View History

2020-08-30 11:54:41 +02:00
#***************************************************************************
# _ _ ____ _
# Project ___| | | | _ \| |
# / __| | | | |_) | |
# | (__| |_| | _ <| |___
# \___|\___/|_| \_\_____|
#
2023-07-02 19:51:09 +02:00
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
2020-08-30 11:54:41 +02:00
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
2021-09-14 00:13:48 +02:00
# are also available at https://curl.se/docs/copyright.html.
2020-08-30 11:54:41 +02: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.
#
2022-11-16 20:14:03 +01:00
# SPDX-License-Identifier: curl
#
2020-08-30 11:54:41 +02:00
###########################################################################
2018-11-29 20:27:00 +01:00
@PACKAGE_INIT@
2018-10-28 12:09:07 +01:00
include(CMakeFindDependencyMacro)
2018-11-29 20:27:00 +01:00
if(@USE_OPENSSL@)
find_dependency(OpenSSL @OPENSSL_VERSION_MAJOR@)
2018-10-28 12:09:07 +01:00
endif()
2018-11-29 20:27:00 +01:00
if(@USE_ZLIB@)
find_dependency(ZLIB @ZLIB_VERSION_MAJOR@)
2018-10-28 12:09:07 +01:00
endif()
2018-11-29 20:27:00 +01:00
include("${CMAKE_CURRENT_LIST_DIR}/@TARGETS_EXPORT_NAME@.cmake")
check_required_components("@PROJECT_NAME@")
2023-12-07 09:12:54 +01:00
# Alias for either shared or static library
2024-04-14 22:45:38 +02:00
if(NOT TARGET @PROJECT_NAME@::libcurl)
add_library(@PROJECT_NAME@::libcurl ALIAS @PROJECT_NAME@::@LIB_SELECTED@)
endif()