From 62c3edb0742cb95890150ab06b4a1d792a7fed68 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 28 Jan 2015 21:39:08 +0000 Subject: [PATCH] Forgot to add. --- contrib/tweetnacl/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 contrib/tweetnacl/CMakeLists.txt 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 -- 2.39.5