link with libsodium

This commit is contained in:
m2049r 2018-09-26 00:19:15 +02:00 committed by m2049r
parent 78d6fef3e4
commit 0c13338dc0
1 changed files with 11 additions and 1 deletions

View File

@ -7,6 +7,14 @@ 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
############
@ -184,5 +192,7 @@ target_link_libraries( monerujo
ssl
crypto
sodium
${log-lib}
)