aboutsummaryrefslogtreecommitdiff
path: root/cmake/FindGnuTLS.cmake
blob: 6b27abd70f7f79f94aea18c78e2bf53a1ccb1049 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
include(PkgConfigWithFallback)
find_pkg_config_with_fallback(GnuTLS
    PKG_CONFIG_NAME gnutls
    LIB_NAMES gnutls
    INCLUDE_NAMES gnutls/gnutls.h
    INCLUDE_DIR_SUFFIXES gnutls gnutls/include
    DEPENDS GLib
)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(GnuTLS
    REQUIRED_VARS GnuTLS_LIBRARY
    VERSION_VAR GnuTLS_VERSION)