Warning, /multimedia/amarok/cmake/modules/FindLibgcrypt.cmake is written in an unsupported language. File is not indexed.
0001 # - Try to find the GNU Libgcrypt library 0002 # Once done this will define 0003 # 0004 # LIBGCRYPT_FOUND - system has the Libgcrypt library 0005 # LIBGCRYPT_LIBS - The libraries needed to use Libgcrypt 0006 0007 # Copyright (c) 2006, Pino Toscano, <toscano.pino@tiscali.it> 0008 # Copyright (c) 2008, Modestas Vainius, <modestas@vainius.eu> 0009 # 0010 # Redistribution and use is allowed according to the terms of the BSD license. 0011 # For details see the accompanying COPYING-CMAKE-SCRIPTS file. 0012 0013 include(CheckIncludeFiles) 0014 0015 check_include_files(gcrypt.h HAVE_GCRYPT_H) 0016 0017 if (HAVE_GCRYPT_H) 0018 set(LIBGCRYPT_HEADERS_FOUND TRUE) 0019 endif () 0020 0021 if (LIBGCRYPT_HEADERS_FOUND) 0022 find_library(LIBGCRYPT_LIBS NAMES gcrypt ) 0023 endif () 0024 0025 if (LIBGCRYPT_LIBS) 0026 set(LIBGCRYPT_FOUND TRUE) 0027 message(STATUS "Libgcrypt found: ${LIBGCRYPT_LIBS}") 0028 elseif (Libgcrypt_FIND_REQUIRED) 0029 message(FATAL_ERROR "Could not find Libgcrypt") 0030 endif ()