diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2024-07-24 12:53:35 +0100 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2024-08-16 19:27:40 +0100 |
commit | d10c5c34c3d899db8bcff47ac8c6ba396a6da4b6 (patch) | |
tree | e44a35be16d2a4ddb073f1bd078d3e48449176b6 /src/test | |
parent | ab2e99b0d95714e16a7d1a1313d7da938b0485cb (diff) |
cmake: Add wallet functionality
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/CMakeLists.txt | 4 | ||||
-rw-r--r-- | src/test/util/CMakeLists.txt | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt index d607e0782f..ee13bb5523 100644 --- a/src/test/CMakeLists.txt +++ b/src/test/CMakeLists.txt @@ -154,6 +154,10 @@ target_link_libraries(test_bitcoin $<TARGET_NAME_IF_EXISTS:libevent::libevent> ) +if(ENABLE_WALLET) + add_subdirectory(${PROJECT_SOURCE_DIR}/src/wallet/test wallet) +endif() + function(add_boost_test source_file) if(NOT EXISTS ${source_file}) return() diff --git a/src/test/util/CMakeLists.txt b/src/test/util/CMakeLists.txt index eb79ea11a7..5d88d1da3e 100644 --- a/src/test/util/CMakeLists.txt +++ b/src/test/util/CMakeLists.txt @@ -17,6 +17,7 @@ add_library(test_util STATIC EXCLUDE_FROM_ALL transaction_utils.cpp txmempool.cpp validation.cpp + $<$<BOOL:${ENABLE_WALLET}>:${PROJECT_SOURCE_DIR}/src/wallet/test/util.cpp> ) target_link_libraries(test_util |