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 /CMakeLists.txt | |
parent | c111e07c4ac6e276c9399b56ca8fe342d78c96cc (diff) | |
download | fastd-ea75116c74feec0541ba3f64a9d1d92e9d67cf2d.tar fastd-ea75116c74feec0541ba3f64a9d1d92e9d67cf2d.zip |
Add curve25519-fhmqvc-xsalsa20-poly1305 method stub
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ba584e6..f536086 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,14 @@ project(FASTD C) set(CMAKE_MODULE_PATH ${FASTD_SOURCE_DIR}) -#configure_file(${FAST_SOURCE_DIR}/config.h.in ${FAST_BINARY_DIR}/config.h) +find_package(NaCl) + +set(WITH_CFXP ${NACL_FOUND} CACHE BOOL "Include curve25519-fhmqvc-xsalsa20-poly1305 method") + +if(WITH_CFXP AND NOT NACL_FOUND) + MESSAGE(FATAL_ERROR "NaCl: Networking and Cryptography library is required for the curve25519-fhmqvc-xsalsa20-poly1305 method") +endif(WITH_CFXP AND NOT NACL_FOUND) + +configure_file(${FASTD_SOURCE_DIR}/config.h.in ${FASTD_BINARY_DIR}/config.h) add_subdirectory(src) |