aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_converter/CMakeLists.txt
diff options
context:
space:
mode:
authorwarptangent <warptangent@inbox.com>2015-02-16 04:20:55 -0800
committerwarptangent <warptangent@inbox.com>2015-03-16 00:26:59 -0700
commitf6cbfb623bd2e7f75b8380b43e29ae6d73442330 (patch)
tree81d641f0a45f8ed0f8912376433c6342d6778ca1 /src/blockchain_converter/CMakeLists.txt
parentAdd support for database open with flags (diff)
downloadmonero-f6cbfb623bd2e7f75b8380b43e29ae6d73442330.tar.xz
Add blockchain_export utility
Based on work by tomerkon. See https://github.com/tomerkon/bitmonero src/cryptonote_core/bootfilesaver.{h,cpp} src/bootfilegen/bootfilegen.cpp
Diffstat (limited to '')
-rw-r--r--src/blockchain_converter/CMakeLists.txt29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/blockchain_converter/CMakeLists.txt b/src/blockchain_converter/CMakeLists.txt
index cc400d927..e0f3be901 100644
--- a/src/blockchain_converter/CMakeLists.txt
+++ b/src/blockchain_converter/CMakeLists.txt
@@ -47,6 +47,20 @@ set(blockchain_import_private_headers
bitmonero_private_headers(blockchain_import
${blockchain_import_private_headers})
+set(blockchain_export_sources
+ blockchain_export.cpp
+ )
+
+set(blockchain_export_private_headers
+ import.h
+ blockchain_export.h
+ )
+
+bitmonero_private_headers(blockchain_export
+ ${blockchain_export_private_headers})
+
+
+
if (BLOCKCHAIN_DB STREQUAL DB_LMDB)
bitmonero_add_executable(blockchain_converter
${blockchain_converter_sources}
@@ -79,3 +93,18 @@ add_dependencies(blockchain_import
set_property(TARGET blockchain_import
PROPERTY
OUTPUT_NAME "blockchain_import")
+
+bitmonero_add_executable(blockchain_export
+ ${blockchain_export_sources}
+ ${blockchain_export_private_headers})
+
+target_link_libraries(blockchain_export
+ LINK_PRIVATE
+ cryptonote_core
+ ${CMAKE_THREAD_LIBS_INIT})
+
+add_dependencies(blockchain_export
+ version)
+set_property(TARGET blockchain_export
+ PROPERTY
+ OUTPUT_NAME "blockchain_export")