"Fossies" - the Fresh Open Source Software Archive

Member "libzip-1.5.2/FindNettle.cmake" (12 Mar 2019, 808 Bytes) of package /linux/misc/libzip-1.5.2.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) CMake source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # - Find Nettle
    2 # Find the Nettle include directory and library
    3 #
    4 #  NETTLE_INCLUDE_DIR    - where to find <nettle/sha.h>, etc.
    5 #  NETTLE_LIBRARIES      - List of libraries when using libnettle.
    6 #  NETTLE_FOUND          - True if libnettle found.
    7 
    8 IF (NETTLE_INCLUDE_DIR)
    9   # Already in cache, be silent
   10   SET(NETTLE_FIND_QUIETLY TRUE)
   11 ENDIF (NETTLE_INCLUDE_DIR)
   12 
   13 FIND_PATH(NETTLE_INCLUDE_DIR nettle/md5.h nettle/ripemd160.h nettle/sha.h)
   14 FIND_LIBRARY(NETTLE_LIBRARY NAMES nettle libnettle)
   15 
   16 # handle the QUIETLY and REQUIRED arguments and set NETTLE_FOUND to TRUE if 
   17 # all listed variables are TRUE
   18 INCLUDE(FindPackageHandleStandardArgs)
   19 FIND_PACKAGE_HANDLE_STANDARD_ARGS(NETTLE DEFAULT_MSG NETTLE_LIBRARY NETTLE_INCLUDE_DIR)
   20 
   21 IF(NETTLE_FOUND)
   22   SET(NETTLE_LIBRARIES ${NETTLE_LIBRARY})
   23 ENDIF(NETTLE_FOUND)