aboutsummaryrefslogtreecommitdiff
path: root/libcmix-crypto/rsa/CMakeLists.txt
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-09-08 14:10:48 +0200
committerDennis Brentjes <d.brentjes@gmail.com>2016-09-08 14:10:48 +0200
commitf77ce5a0226014c811a46d8ab1ba8c9164768ed3 (patch)
tree77405cce94039217e3162b3772196e50ce01115b /libcmix-crypto/rsa/CMakeLists.txt
parent4f13051f763cab3d431847305eff913e4bf9d77a (diff)
downloadcmix-f77ce5a0226014c811a46d8ab1ba8c9164768ed3.tar.gz
cmix-f77ce5a0226014c811a46d8ab1ba8c9164768ed3.tar.bz2
cmix-f77ce5a0226014c811a46d8ab1ba8c9164768ed3.zip
Added null-rsa implementation.
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}
+)