aboutsummaryrefslogtreecommitdiff
path: root/libcmix-crypto/CMakeLists.txt
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-10-27 09:25:53 +0200
committerDennis Brentjes <d.brentjes@gmail.com>2016-10-27 09:25:53 +0200
commit25db9ff8a4cfb4b98aeeaae360e8c718b9c5e20c (patch)
tree079ea63fcc874506072a91b13d2612b510cf158e /libcmix-crypto/CMakeLists.txt
parent9eaf47d5dfa56ca79ae903aabfc2cf52bdfb981e (diff)
downloadcmix-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 'libcmix-crypto/CMakeLists.txt')
-rw-r--r--libcmix-crypto/CMakeLists.txt14
1 files changed, 10 insertions, 4 deletions
diff --git a/libcmix-crypto/CMakeLists.txt b/libcmix-crypto/CMakeLists.txt
index 0986024..65b00ab 100644
--- a/libcmix-crypto/CMakeLists.txt
+++ b/libcmix-crypto/CMakeLists.txt
@@ -34,7 +34,13 @@ target_sources(cmix-crypto
option(UseEC "Use curve25519 instead of RSA" ON)
-target_link_libraries(cmix-crypto
- INTERFACE curve25519-implementation
- INTERFACE elgamal-implementation
-) \ No newline at end of file
+if(UseEC)
+ target_link_libraries(cmix-crypto
+ INTERFACE curve25519-implementation
+ )
+else(UseEC)
+ target_link_libraries(cmix-crypto
+ INTERFACE elgamal-implementation
+ )
+endif(UseEC)
+