aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-01-28 21:39:08 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-01-28 21:39:08 +0000
commit62c3edb0742cb95890150ab06b4a1d792a7fed68 (patch)
treeee817549909930af7bc822038226edd28fd500b0 /contrib
parent6024829e9b5950b7a59d96d5467a542874281b3a (diff)
downloadrspamd-62c3edb0742cb95890150ab06b4a1d792a7fed68.tar.gz
rspamd-62c3edb0742cb95890150ab06b4a1d792a7fed68.zip
Forgot to add.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/tweetnacl/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/tweetnacl/CMakeLists.txt b/contrib/tweetnacl/CMakeLists.txt
new file mode 100644
index 000000000..ac4f6e806
--- /dev/null
+++ b/contrib/tweetnacl/CMakeLists.txt
@@ -0,0 +1,8 @@
+cmake_minimum_required(VERSION 2.6)
+
+set(NACL_SRC tweetnacl.c)
+
+add_library(tweetnacl STATIC "${NACL_SRC}")
+if ("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
+ set_target_properties(tweetnacl PROPERTIES COMPILER_FLAGS "-O3")
+endif () \ No newline at end of file