]> source.dussan.org Git - rspamd.git/commitdiff
Forgot to add.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 28 Jan 2015 21:39:08 +0000 (21:39 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 28 Jan 2015 21:39:08 +0000 (21:39 +0000)
contrib/tweetnacl/CMakeLists.txt [new file with mode: 0644]

diff --git a/contrib/tweetnacl/CMakeLists.txt b/contrib/tweetnacl/CMakeLists.txt
new file mode 100644 (file)
index 0000000..ac4f6e8
--- /dev/null
@@ -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