mirror of
https://github.com/overte-org/overte.git
synced 2025-07-25 12:45:33 +02:00
28 lines
No EOL
879 B
CMake
28 lines
No EOL
879 B
CMake
# Try to find the GnuTLS library
|
|
#
|
|
# You can provide a GNUTLS_ROOT_DIR which contains lib and include directories
|
|
#
|
|
# Once done this will define
|
|
#
|
|
# GNUTLS_FOUND - system found GnuTLS
|
|
# GNUTLS_INCLUDE_DIR - the GnuTLS include directory
|
|
# GNUTLS_LIBRARY - Link this to use GnuTLS
|
|
#
|
|
# Created on 3/31/2014 by Stephen Birarda
|
|
# Copyright (c) 2014 High Fidelity
|
|
#
|
|
|
|
if (GNUTLS_LIBRARY AND GNUTLS_INCLUDE_DIRS)
|
|
# in cache already
|
|
set(GNUTLS_FOUND TRUE)
|
|
else ()
|
|
|
|
set(GNUTLS_SEARCH_DIRS "${GNUTLS_ROOT_DIR}" "$ENV{HIFI_LIB_DIR}/gnutls")
|
|
|
|
find_path(GNUTLS_INCLUDE_DIR gnutls.h PATH_SUFFIXES include gnutls HINTS ${GNUTLS_SEARCH_DIRS})
|
|
|
|
find_library(GNUTLS_LIBRARY NAMES gnutls PATH_SUFFIXES lib HINTS ${GNUTLS_SEARCH_DIRS})
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(GNUTLS DEFAULT_MSG GNUTLS_INCLUDE_DIR GNUTLS_LIBRARY)
|
|
endif () |