From f77ce5a0226014c811a46d8ab1ba8c9164768ed3 Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Thu, 8 Sep 2016 14:10:48 +0200 Subject: Added null-rsa implementation. --- libcmix-crypto/rsa/CMakeLists.txt | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'libcmix-crypto/rsa/CMakeLists.txt') 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} +) -- cgit v1.2.3-70-g09d2