aboutsummaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorstoffu <stoffu@protonmail.ch>2018-03-08 10:01:29 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-03-16 10:32:57 +0000
commit2ab66ff1d4f4df43f85e657fd93da4f8c680493d (patch)
treea48e564876aa6faf4da415ed14f5df1aa391db90 /external
parentringdb: use the genesis block as a db name (diff)
downloadmonero-2ab66ff1d4f4df43f85e657fd93da4f8c680493d.tar.xz
liblmdb: install lmdb library for wallet2_api usage
Diffstat (limited to 'external')
-rw-r--r--external/db_drivers/liblmdb/CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/external/db_drivers/liblmdb/CMakeLists.txt b/external/db_drivers/liblmdb/CMakeLists.txt
index cb2501ee5..2e8822f54 100644
--- a/external/db_drivers/liblmdb/CMakeLists.txt
+++ b/external/db_drivers/liblmdb/CMakeLists.txt
@@ -50,4 +50,16 @@ if(${ARCH_WIDTH} EQUAL 32)
target_compile_definitions(lmdb
PUBLIC -DMDB_VL32)
endif()
+
+# GUI/libwallet install target
+if (BUILD_GUI_DEPS)
+ if(IOS)
+ set(lib_folder lib-${ARCH})
+ else()
+ set(lib_folder lib)
+ endif()
+ install(TARGETS lmdb
+ ARCHIVE DESTINATION ${lib_folder}
+ LIBRARY DESTINATION ${lib_folder})
+endif()
set_property(TARGET lmdb APPEND PROPERTY COMPILE_FLAGS "-fPIC")