1
# - Try to find libgcrypt
2
# Once done this will define
4
# DVDREAD_FOUND - system has libgcrypt
5
# LIBGCRYPT_INCLUDE_DIR - the libgcrypt include directory
6
# LIBGCRYPT_LIBRARIES - Link these to use libgcrypt
7
# LIBGCRYPT_DEFINITIONS - Compiler switches required for using libgcrypt
9
# Copyright (c) 2007, Laurent Montel, <montel@kde.org>
11
# Redistribution and use is allowed according to the terms of the BSD license.
12
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
16
if ( LIBGCRYPT_INCLUDE_DIR AND LIBGCRYPT_LIBRARIES )
18
SET(libgcrypt_FIND_QUIETLY TRUE)
19
endif ( LIBGCRYPT_INCLUDE_DIR AND LIBGCRYPT_LIBRARIES )
21
FIND_PATH(LIBGCRYPT_INCLUDE_DIR NAMES gcrypt.h
24
FIND_LIBRARY(LIBGCRYPT_LIBRARIES NAMES gcrypt
27
include(FindPackageHandleStandardArgs)
28
FIND_PACKAGE_HANDLE_STANDARD_ARGS(libgcrypt DEFAULT_MSG LIBGCRYPT_INCLUDE_DIR LIBGCRYPT_LIBRARIES )
30
# show the LIBGCRYPT_INCLUDE_DIR and LIBGCRYPT_LIBRARIES variables only in the advanced view
31
MARK_AS_ADVANCED(LIBGCRYPT_INCLUDE_DIR LIBGCRYPT_LIBRARIES )