summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-03-08 22:38:02 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-03-08 22:38:02 +0100
commitea75116c74feec0541ba3f64a9d1d92e9d67cf2d (patch)
tree0de030ed1969839a2756861a94bdf878c8d5be87 /src/CMakeLists.txt
parentc111e07c4ac6e276c9399b56ca8fe342d78c96cc (diff)
downloadfastd-ea75116c74feec0541ba3f64a9d1d92e9d67cf2d.tar
fastd-ea75116c74feec0541ba3f64a9d1d92e9d67cf2d.zip
Add curve25519-fhmqvc-xsalsa20-poly1305 method stub
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 044ec80..ca32e30 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,2 +1,14 @@
-add_executable(fastd fastd.c handshake.c method_null.c peer.c printf.c queue.c task.c)
-target_link_libraries(fastd rt)
+set(METHODS method_null.c)
+set(FASTD_INCLUDES ${FASTD_BINARY_DIR})
+set(FASTD_LIBS "")
+
+if(WITH_CFXP)
+ set(METHODS ${METHODS} method_curve25519_fhmqvc_xsalsa20_poly1305.c)
+ set(FASTD_INCLUDES ${FASTD_INCLUDES} ${NACL_INCLUDE_DIR})
+ set(FASTD_LIBS ${FASTD_LIBS} ${NACL_LIBRARY})
+endif(WITH_CFXP)
+
+include_directories(${FASTD_INCLUDES})
+
+add_executable(fastd fastd.c handshake.c peer.c printf.c queue.c task.c ${METHODS})
+target_link_libraries(fastd rt ${FASTD_LIBS})