From 25db9ff8a4cfb4b98aeeaae360e8c718b9c5e20c Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Thu, 27 Oct 2016 09:25:53 +0200 Subject: Adds libgcrypt implementation for elgamal in multiplicative group. Also adapts the API to both handle sodium and gcrypt libraries. --- scratchpad/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scratchpad/CMakeLists.txt') diff --git a/scratchpad/CMakeLists.txt b/scratchpad/CMakeLists.txt index d1e4223..c1e2c75 100644 --- a/scratchpad/CMakeLists.txt +++ b/scratchpad/CMakeLists.txt @@ -1,4 +1,6 @@ +find_package(Gcrypt REQUIRED) + add_executable(scratchpad scratchpad.c ) @@ -7,7 +9,12 @@ target_compile_options(scratchpad PRIVATE -std=c99 ) +target_compile_options(scratchpad + PRIVATE ${Gcrypt_CFLAGS} +) + target_link_libraries(scratchpad PRIVATE cmix PRIVATE cmix-crypto + PRIVATE ${Gcrypt_LIBRARIES} ) -- cgit v1.2.3-70-g09d2