Use Client_find_by_session() instead of a few open-coded loops.
[umurmur.git] / cmake / Modules / FindNettle.cmake
1 # https://github.com/Kitware/CMake/blob/master/Utilities/cmlibarchive/build/cmake/FindNettle.cmake
2 #
3 # - Find Nettle
4 # Find the Nettle include directory and library
5 #
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.
9
10 IF (NETTLE_INCLUDE_DIR)
11   # Already in cache, be silent
12   SET(NETTLE_FIND_QUIETLY TRUE)
13 ENDIF (NETTLE_INCLUDE_DIR)
14
15 FIND_PATH(NETTLE_INCLUDE_DIR nettle/md5.h nettle/ripemd160.h nettle/sha.h)
16 FIND_LIBRARY(NETTLE_LIBRARY NAMES nettle libnettle)
17
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)
22
23 IF(NETTLE_FOUND)
24   SET(NETTLE_LIBRARIES ${NETTLE_LIBRARY})
25 ENDIF(NETTLE_FOUND)