aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_utilities/CMakeLists.txt
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-11-04 20:47:06 +0200
committerRiccardo Spagni <ric@spagni.net>2018-11-04 20:47:06 +0200
commit68e2efa8f2735558a5ecbfea3f287977b0ad5f4f (patch)
tree0510dcd2501471d16c0c88491947f5577167210f /src/blockchain_utilities/CMakeLists.txt
parentMerge pull request #4693 (diff)
parentAdd stats utility (diff)
downloadmonero-68e2efa8f2735558a5ecbfea3f287977b0ad5f4f.tar.xz
Merge pull request #4694
a43daebf Add stats utility (Howard Chu)
Diffstat (limited to 'src/blockchain_utilities/CMakeLists.txt')
-rw-r--r--src/blockchain_utilities/CMakeLists.txt28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/blockchain_utilities/CMakeLists.txt b/src/blockchain_utilities/CMakeLists.txt
index 6e6e4c6f1..c9ad1cebe 100644
--- a/src/blockchain_utilities/CMakeLists.txt
+++ b/src/blockchain_utilities/CMakeLists.txt
@@ -101,6 +101,14 @@ set(blockchain_depth_private_headers)
monero_private_headers(blockchain_depth
${blockchain_depth_private_headers})
+set(blockchain_stats_sources
+ blockchain_stats.cpp
+ )
+
+set(blockchain_stats_private_headers)
+
+monero_private_headers(blockchain_stats
+ ${blockchain_stats_private_headers})
monero_add_executable(blockchain_import
@@ -237,3 +245,23 @@ set_property(TARGET blockchain_depth
OUTPUT_NAME "monero-blockchain-depth")
install(TARGETS blockchain_depth DESTINATION bin)
+monero_add_executable(blockchain_stats
+ ${blockchain_stats_sources}
+ ${blockchain_stats_private_headers})
+
+target_link_libraries(blockchain_stats
+ PRIVATE
+ cryptonote_core
+ blockchain_db
+ version
+ epee
+ ${Boost_FILESYSTEM_LIBRARY}
+ ${Boost_SYSTEM_LIBRARY}
+ ${Boost_THREAD_LIBRARY}
+ ${CMAKE_THREAD_LIBS_INIT}
+ ${EXTRA_LIBRARIES})
+
+set_property(TARGET blockchain_stats
+ PROPERTY
+ OUTPUT_NAME "monero-blockchain-stats")
+install(TARGETS blockchain_stats DESTINATION bin)