aboutsummaryrefslogtreecommitdiff
path: root/libcmix-crypto/rsa/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'libcmix-crypto/rsa/CMakeLists.txt')
-rw-r--r--libcmix-crypto/rsa/CMakeLists.txt27
1 files changed, 26 insertions, 1 deletions
diff --git a/libcmix-crypto/rsa/CMakeLists.txt b/libcmix-crypto/rsa/CMakeLists.txt
index 82e56a9..2eb847f 100644
--- a/libcmix-crypto/rsa/CMakeLists.txt
+++ b/libcmix-crypto/rsa/CMakeLists.txt
@@ -1,4 +1,29 @@
+add_library(rsa-interface INTERFACE)
+
+target_include_directories(rsa-interface
+ INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}
+)
+
+target_sources(rsa-interface
+ INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/rsa.h
+)
+
+target_link_libraries(rsa-interface
+ INTERFACE cmix-crypto-interface
+)
+
foreach(impl ${rsa_implementations})
add_subdirectory(${impl})
endforeach()
-
+
+add_library(rsa-implementation
+ rsa.h rsa.c
+)
+
+target_include_directories(rsa-implementation
+ PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
+)
+
+target_link_libraries(rsa-implementation
+ PUBLIC rsa-${rsa_implementation}
+)