diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2016-10-27 09:25:53 +0200 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2016-10-27 09:25:53 +0200 |
| commit | 25db9ff8a4cfb4b98aeeaae360e8c718b9c5e20c (patch) | |
| tree | 079ea63fcc874506072a91b13d2612b510cf158e /scratchpad/CMakeLists.txt | |
| parent | 9eaf47d5dfa56ca79ae903aabfc2cf52bdfb981e (diff) | |
| download | cmix-25db9ff8a4cfb4b98aeeaae360e8c718b9c5e20c.tar.gz cmix-25db9ff8a4cfb4b98aeeaae360e8c718b9c5e20c.tar.bz2 cmix-25db9ff8a4cfb4b98aeeaae360e8c718b9c5e20c.zip | |
Adds libgcrypt implementation for elgamal in multiplicative group.
Also adapts the API to both handle sodium and gcrypt libraries.
Diffstat (limited to 'scratchpad/CMakeLists.txt')
| -rw-r--r-- | scratchpad/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
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} ) |
