forked from nih-at/libzip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libzip-config.cmake.in
45 lines (36 loc) · 1.03 KB
/
libzip-config.cmake.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
@PACKAGE_INIT@
# We need to supply transitive dependencies if this config is for a static library
set(IS_SHARED @BUILD_SHARED_LIBS@)
if (NOT IS_SHARED)
include(CMakeFindDependencyMacro)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/modules")
set(ENABLE_BZIP2 @BZIP2_FOUND@)
set(ENABLE_LZMA @LIBLZMA_FOUND@)
set(ENABLE_ZSTD @ZSTD_FOUND@)
set(ENABLE_GNUTLS @GNUTLS_FOUND@)
set(ENABLE_MBEDTLS @MBEDTLS_FOUND@)
set(ENABLE_OPENSSL @OPENSSL_FOUND@)
find_dependency(ZLIB 1.1.2)
if(ENABLE_BZIP2)
find_dependency(BZip2)
endif()
if(ENABLE_LZMA)
find_dependency(LibLZMA 5.2)
endif()
if(ENABLE_ZSTD)
find_dependency(Zstd 1.3.6)
endif()
if(ENABLE_GNUTLS)
find_dependency(Nettle 3.0)
find_dependency(GnuTLS)
endif()
if(ENABLE_MBEDTLS)
find_dependency(MbedTLS 1.0)
endif()
if(ENABLE_OPENSSL)
find_dependency(OpenSSL)
endif()
endif()
# Provide all our library targets to users.
include("${CMAKE_CURRENT_LIST_DIR}/libzip-targets.cmake")
check_required_components(libzip)