1
if (GCRYPT_INCLUDE_DIRS AND GCRYPT_LIBRARIES)
3
else (GCRYPT_INCLUDE_DIRS AND GCRYPT_LIBRARIES)
4
find_path(GCRYPT_INCLUDE_DIRS
8
${GCRYPT_PREFIX}/include
14
find_library(GCRYPT_LIBRARIES
23
if(GCRYPT_INCLUDE_DIRS AND GCRYPT_LIBRARIES)
24
set(GCRYPT_FOUND TRUE)
25
endif(GCRYPT_INCLUDE_DIRS AND GCRYPT_LIBRARIES)
26
endif (GCRYPT_INCLUDE_DIRS AND GCRYPT_LIBRARIES)
29
message(STATUS "Found libgcrypt: includes ${GCRYPT_INCLUDE_DIRS} libs ${GCRYPT_LIBRARIES}")
31
if (GCrypt_FIND_REQUIRED)
32
message(FATAL_ERROR "Could not find libgcrypt, try to setup GCRYPT_PREFIX accordingly")
33
endif (GCrypt_FIND_REQUIRED)