Skip to content

Commit 210693e

Browse files
committed
cmake: Build bitcoin-util executable
1 parent f260184 commit 210693e

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ include(CMakeDependentOption)
4141
option(BUILD_DAEMON "Build bitcoind executable." ON)
4242
option(BUILD_CLI "Build bitcoin-cli executable." ON)
4343
option(BUILD_TX "Build bitcoin-tx executable." ON)
44+
option(BUILD_UTIL "Build bitcoin-util executable." ON)
4445
option(ASM "Use assembly routines." ON)
4546
cmake_dependent_option(CXX20 "Enable compilation in C++20 mode." OFF "NOT MSVC" ON)
4647
option(THREADLOCAL "Enable features that depend on the C++ thread_local keyword (currently just thread names in debug logs)." ON)
@@ -149,6 +150,7 @@ message("Executables:")
149150
message(" bitcoind ............................ ${BUILD_DAEMON}")
150151
message(" bitcoin-cli ......................... ${BUILD_CLI}")
151152
message(" bitcoin-tx .......................... ${BUILD_TX}")
153+
message(" bitcoin-util ........................ ${BUILD_UTIL}")
152154
message("Optional packages:")
153155
message(" NAT-PMP ............................. ${WITH_NATPMP}")
154156
message(" UPnP ................................ ${WITH_MINIUPNPC}")

src/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,3 +249,12 @@ if(BUILD_TX)
249249
univalue
250250
)
251251
endif()
252+
253+
254+
if(BUILD_UTIL)
255+
add_executable(bitcoin-util bitcoin-util.cpp)
256+
target_link_libraries(bitcoin-util
257+
bitcoin_common
258+
bitcoin_util
259+
)
260+
endif()

0 commit comments

Comments
 (0)