diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-08 22:38:02 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-08 22:38:02 +0100 |
commit | ea75116c74feec0541ba3f64a9d1d92e9d67cf2d (patch) | |
tree | 0de030ed1969839a2756861a94bdf878c8d5be87 /FindNaCl.cmake | |
parent | c111e07c4ac6e276c9399b56ca8fe342d78c96cc (diff) | |
download | fastd-ea75116c74feec0541ba3f64a9d1d92e9d67cf2d.tar fastd-ea75116c74feec0541ba3f64a9d1d92e9d67cf2d.zip |
Add curve25519-fhmqvc-xsalsa20-poly1305 method stub
Diffstat (limited to 'FindNaCl.cmake')
-rw-r--r-- | FindNaCl.cmake | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/FindNaCl.cmake b/FindNaCl.cmake new file mode 100644 index 0000000..0d453b0 --- /dev/null +++ b/FindNaCl.cmake @@ -0,0 +1,16 @@ +FIND_PATH(NACL_INCLUDE_DIR crypto_secretbox_xsalsa20poly1305.h PATH_SUFFIXES nacl) +FIND_LIBRARY(NACL_LIBRARY NAMES nacl) + +IF (NACL_INCLUDE_DIR AND NACL_LIBRARY) + SET(NACL_FOUND TRUE) +ENDIF (NACL_INCLUDE_DIR AND NACL_LIBRARY) + +IF (NACL_FOUND) + IF (NOT NaCl_FIND_QUIETLY) + MESSAGE(STATUS "Found NaCl: Networking and Cryptography library: ${NACL_LIBRARY}; include path: ${NACL_INCLUDE_DIR}") + ENDIF (NOT NaCl_FIND_QUIETLY) +ELSE (NACL_FOUND) + IF (NaCl_FIND_REQUIRED) + MESSAGE(FATAL_ERROR "Could not find NaCl: Networking and Cryptography library") + ENDIF (NaCl_FIND_REQUIRED) +ENDIF (NACL_FOUND) |