aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2024-06-30 15:55:35 +0100
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2024-08-16 21:19:09 +0100
commitbb1a450dcb111746869547c8b538b5d2472cf8e6 (patch)
tree254930bf41d29c681e47f6110f5ec057a0f55d64 /src
parentaed38ea58cbde068fe12b5299b246b4e3649a09c (diff)
cmake: Build `bitcoin-chainstate` executable
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 26a95ec3e8..7de51472da 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -353,6 +353,26 @@ if(BUILD_KERNEL_LIB)
add_subdirectory(kernel)
endif()
+if(BUILD_UTIL_CHAINSTATE)
+ add_executable(bitcoin-chainstate
+ bitcoin-chainstate.cpp
+ )
+ # TODO: The `SKIP_BUILD_RPATH` property setting can be deleted
+ # in the future after reordering Guix script commands to
+ # perform binary checks after the installation step.
+ # Relevant discussions:
+ # - https://github.com/hebasto/bitcoin/pull/236#issuecomment-2183120953
+ # - https://github.com/bitcoin/bitcoin/pull/30312#issuecomment-2191235833
+ set_target_properties(bitcoin-chainstate PROPERTIES
+ SKIP_BUILD_RPATH OFF
+ )
+ target_link_libraries(bitcoin-chainstate
+ PRIVATE
+ core_interface
+ bitcoinkernel
+ )
+endif()
+
add_subdirectory(test/util)
if(BUILD_BENCH)