diff options
author | Thomas Winget <tewinget@gmail.com> | 2015-03-17 19:07:09 -0400 |
---|---|---|
committer | Thomas Winget <tewinget@gmail.com> | 2015-03-17 19:07:09 -0400 |
commit | 38c54b79fdf9af7446ea055180340f7e131cde82 (patch) | |
tree | 2abd2c1e18bbc70146761137058e33ea6bc5bd53 /src/blockchain_converter/CMakeLists.txt | |
parent | Merges #33 (diff) | |
parent | blockchain_export: Add compile-time support for BlockchainDB (diff) | |
download | monero-38c54b79fdf9af7446ea055180340f7e131cde82.tar.xz |
Merges PR #35
Diffstat (limited to 'src/blockchain_converter/CMakeLists.txt')
-rw-r--r-- | src/blockchain_converter/CMakeLists.txt | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/src/blockchain_converter/CMakeLists.txt b/src/blockchain_converter/CMakeLists.txt index a91624f4f..e0f3be901 100644 --- a/src/blockchain_converter/CMakeLists.txt +++ b/src/blockchain_converter/CMakeLists.txt @@ -35,6 +35,32 @@ set(blockchain_converter_private_headers) bitmonero_private_headers(blockchain_converter ${blockchain_converter_private_headers}) +set(blockchain_import_sources + blockchain_import.cpp + ) + +set(blockchain_import_private_headers + import.h + fake_core.h + ) + +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} @@ -52,3 +78,33 @@ set_property(TARGET blockchain_converter PROPERTY OUTPUT_NAME "blockchain_converter") endif () + +bitmonero_add_executable(blockchain_import + ${blockchain_import_sources} + ${blockchain_import_private_headers}) + +target_link_libraries(blockchain_import + LINK_PRIVATE + cryptonote_core + ${CMAKE_THREAD_LIBS_INIT}) + +add_dependencies(blockchain_import + version) +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") |