From 0c13338dc032d0d20b9b6d3b32c9ee5209d891fe Mon Sep 17 00:00:00 2001 From: m2049r Date: Wed, 26 Sep 2018 00:19:15 +0200 Subject: [PATCH] link with libsodium --- app/CMakeLists.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index 7287aac1..0eaf6d7d 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -7,13 +7,21 @@ add_library( monerujo set(EXTERNAL_LIBS_DIR ${CMAKE_SOURCE_DIR}/../external-libs) +############ +# libsodium +############ + +add_library(sodium STATIC IMPORTED) +set_target_properties(sodium PROPERTIES IMPORTED_LOCATION + ${EXTERNAL_LIBS_DIR}/libsodium/lib/${ANDROID_ABI}/libsodium.a) + ############ # OpenSSL ############ add_library(crypto STATIC IMPORTED) set_target_properties(crypto PROPERTIES IMPORTED_LOCATION - ${EXTERNAL_LIBS_DIR}/openssl/lib/${ANDROID_ABI}/libcrypto.a) + ${EXTERNAL_LIBS_DIR}/openssl/lib/${ANDROID_ABI}/libcrypto.a) add_library(ssl STATIC IMPORTED) set_target_properties(ssl PROPERTIES IMPORTED_LOCATION @@ -184,5 +192,7 @@ target_link_libraries( monerujo ssl crypto + sodium + ${log-lib} )