diff options
Diffstat (limited to 'external/nettle-3.3/CMakeLists.txt')
-rw-r--r-- | external/nettle-3.3/CMakeLists.txt | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/external/nettle-3.3/CMakeLists.txt b/external/nettle-3.3/CMakeLists.txt new file mode 100644 index 0000000..72c7f86 --- /dev/null +++ b/external/nettle-3.3/CMakeLists.txt @@ -0,0 +1,38 @@ +add_library ( nettle STATIC + nettle/bignum.c + nettle/bignum-random.c + nettle/bignum-random-prime.c + nettle/buffer.c + nettle/buffer-init.c + nettle/gmp-glue.c + nettle/mini-gmp.c + nettle/pkcs1.c + nettle/pkcs1-rsa-sha256.c + nettle/realloc.c + nettle/rsa.c + nettle/rsa2sexp.c + nettle/rsa-keygen.c + nettle/rsa-sha256-sign.c + nettle/rsa-sha256-verify.c + nettle/rsa-sign.c + nettle/rsa-verify.c + nettle/sexp.c + nettle/sexp-format.c + nettle/sexp2bignum.c + nettle/sexp2rsa.c + nettle/sha256-compress.c + nettle/sha256.c + nettle/write-be32.c + ) + +add_definitions ( + -DNDEBUG + -mfpmath=sse + -ffast-math + ) +include_directories ( + include + ) + +# command: /usr/bin/clang -Wall -Wextra -DLUA_COMPAT_5_2 -fPIC -fpic -o build/release-darwin-x86_64/nettle/bignum.o -c src/nettle-3.3/nettle/bignum.c + |