cmake: Build `bitcoin-util` executable

pull/30454/head
Hennadii Stepanov 10 months ago
parent 027c6d7caa
commit e73e9304a1
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F

@ -71,6 +71,7 @@ option(BUILD_CLI "Build bitcoin-cli executable." ON)
option(BUILD_TESTS "Build test_bitcoin executable." ON)
option(BUILD_TX "Build bitcoin-tx executable." ${BUILD_TESTS})
option(BUILD_UTIL "Build bitcoin-util executable." ${BUILD_TESTS})
option(ENABLE_WALLET "Enable wallet." ON)
option(WITH_SQLITE "Enable SQLite wallet support." ${ENABLE_WALLET})
@ -269,6 +270,7 @@ message("Executables:")
message(" bitcoind ............................ ${BUILD_DAEMON}")
message(" bitcoin-cli ......................... ${BUILD_CLI}")
message(" bitcoin-tx .......................... ${BUILD_TX}")
message(" bitcoin-util ........................ ${BUILD_UTIL}")
message(" bitcoin-wallet ...................... ${BUILD_WALLET_TOOL}")
message("Optional features:")
message(" wallet support ...................... ${ENABLE_WALLET}")

@ -320,6 +320,16 @@ if(BUILD_TX)
endif()
if(BUILD_UTIL)
add_executable(bitcoin-util bitcoin-util.cpp)
target_link_libraries(bitcoin-util
core_interface
bitcoin_common
bitcoin_util
)
endif()
add_subdirectory(test/util)
if(BUILD_TESTS)
add_subdirectory(test)

Loading…
Cancel
Save