cmake/Modules/FindGnuTLS.cmake
author Tero Marttila <terom@fixme.fi>
Fri, 15 May 2009 00:05:01 +0300
changeset 200 c414343101df
parent 59 375a3b5c3a46
permissions -rw-r--r--
don't keep console SIGINT behaviour after it was destroyed, instead, have nexus handle it like SIGTERM, and have console override that
# Find gnutls
# Once done, this will define:
#
#   GnuTLS_FOUND
#   GnuTLS_INCLUDE_DIRS
#   GnuTLS_LIBRARIES
#

include (LibFindMacros)

# use pkg-config
libfind_pkg_check_modules (GnuTLS_PKGCONF gnutls)

# include dir
find_path (GnuTLS_INCLUDE_DIR
    NAMES "gnutls/gnutls.h"
    PATHS ${GnuTLS_PKGCONF_INCLUDE_DIRS}
)

# library
find_library (GnuTLS_LIBRARY
    NAMES "gnutls"
    PATHS ${GnuTLS_PKGCONF_LIBRARY_DIRS}
)

# set the external vars
set (GnuTLS_PROCESS_INCLUDES GnuTLS_INCLUDE_DIR)
set (GnuTLS_PROCESS_LIBS GnuTLS_LIBRARY)
libfind_process (GnuTLS)