diff options
Diffstat (limited to 'libcmix-crypto/ed25519/CMakeLists.txt')
| -rw-r--r-- | libcmix-crypto/ed25519/CMakeLists.txt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/libcmix-crypto/ed25519/CMakeLists.txt b/libcmix-crypto/ed25519/CMakeLists.txt new file mode 100644 index 0000000..3aae9fe --- /dev/null +++ b/libcmix-crypto/ed25519/CMakeLists.txt @@ -0,0 +1,32 @@ +add_library(ed25519-interface INTERFACE) + +target_include_directories(ed25519-interface + INTERFACE ${CMAKE_CURRENT_SOURCE_DIR} +) + +target_sources(ed25519-interface + INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/ed25519.h +) + +target_link_libraries(ed25519-interface + INTERFACE cmix-crypto-interface +) + +foreach(impl ${libcmix_crypto_ed25519_implementations}) + add_subdirectory(${impl}) +endforeach() + +add_library(ed25519-implementation + ed25519.h ed25519.c +) + +target_include_directories(ed25519-implementation + PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} +) + +target_link_libraries(ed25519-implementation + PUBLIC ed25519-interface + PUBLIC ed25519-${libcmix_crypto_ed25519_implementation} +) + + |
