aboutsummaryrefslogtreecommitdiff
path: root/libcmix-crypto/elgamal/gcrypt/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'libcmix-crypto/elgamal/gcrypt/CMakeLists.txt')
-rw-r--r--libcmix-crypto/elgamal/gcrypt/CMakeLists.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/libcmix-crypto/elgamal/gcrypt/CMakeLists.txt b/libcmix-crypto/elgamal/gcrypt/CMakeLists.txt
new file mode 100644
index 0000000..826eee4
--- /dev/null
+++ b/libcmix-crypto/elgamal/gcrypt/CMakeLists.txt
@@ -0,0 +1,19 @@
+include(get_target_name)
+
+get_target_name(target_name)
+
+find_package(Gcrypt REQUIRED)
+
+add_library(${target_name} SHARED
+ gcrypt_elgamal.c
+)
+
+target_compile_options(${target_name}
+ PRIVATE -std=c99
+ PUBLIC ${Gcrypt_CFLAGS}
+)
+
+target_link_libraries(${target_name}
+ PRIVATE elgamal-interface
+ PUBLIC ${Gcrypt_LIBRARIES}
+)