cmake: Build test_bitcoin executable

This commit is contained in:
Hennadii Stepanov committed 2024-08-16 19:27:39 +01:00
1 parent b27bf9700d
commit 959370bd76
8 files changed
+272 -1

No files matched your search

+5 -1
View File
@@ -68,6 +68,8 @@ list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/module)
option(BUILD_DAEMON "Build bitcoind executable." ON)
option(BUILD_CLI "Build bitcoin-cli executable." ON)
option(BUILD_TESTS "Build test_bitcoin executable." ON)
option(WITH_CCACHE "Attempt to use ccache for compiling." ON)
set(configure_warnings)
@@ -194,7 +196,7 @@ target_link_libraries(core_interface INTERFACE
include(AddBoostIfNeeded)
add_boost_if_needed()
if(BUILD_DAEMON OR BUILD_CLI)
if(BUILD_DAEMON OR BUILD_CLI OR BUILD_TESTS)
find_package(Libevent 2.1.8 MODULE REQUIRED)
endif()
@@ -230,6 +232,8 @@ message("=================")
message("Executables:")
message(" bitcoind ............................ ${BUILD_DAEMON}")
message(" bitcoin-cli ......................... ${BUILD_CLI}")
message("Tests:")
message(" test_bitcoin ........................ ${BUILD_TESTS}")
message("")
message("C++ compiler .......................... ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}, ${CMAKE_CXX_COMPILER}")
include(FlagsSummary)