1 # https://github.com/Kitware/CMake/blob/master/Utilities/cmlibarchive/build/cmake/FindNettle.cmake
4 # Find the Nettle include directory and library
6 # NETTLE_INCLUDE_DIR - where to find <nettle/sha.h>, etc.
7 # NETTLE_LIBRARIES - List of libraries when using libnettle.
8 # NETTLE_FOUND - True if libnettle found.
10 IF (NETTLE_INCLUDE_DIR)
11 # Already in cache, be silent
12 SET(NETTLE_FIND_QUIETLY TRUE)
13 ENDIF (NETTLE_INCLUDE_DIR)
15 FIND_PATH(NETTLE_INCLUDE_DIR nettle/md5.h nettle/ripemd160.h nettle/sha.h)
16 FIND_LIBRARY(NETTLE_LIBRARY NAMES nettle libnettle)
18 # handle the QUIETLY and REQUIRED arguments and set NETTLE_FOUND to TRUE if
19 # all listed variables are TRUE
20 INCLUDE(FindPackageHandleStandardArgs)
21 FIND_PACKAGE_HANDLE_STANDARD_ARGS(NETTLE DEFAULT_MSG NETTLE_LIBRARY NETTLE_INCLUDE_DIR)
24 SET(NETTLE_LIBRARIES ${NETTLE_LIBRARY})