mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-05 18:52:29 +02:00
cmake: Move IPC tests to ipc/test
This commit is contained in:
19
src/ipc/test/CMakeLists.txt
Normal file
19
src/ipc/test/CMakeLists.txt
Normal file
@@ -0,0 +1,19 @@
|
||||
# Copyright (c) 2023-present The Bitcoin Core developers
|
||||
# Distributed under the MIT software license, see the accompanying
|
||||
# file COPYING or https://opensource.org/license/mit/.
|
||||
|
||||
target_link_libraries(bitcoin_ipc_test
|
||||
PRIVATE
|
||||
core_interface
|
||||
univalue
|
||||
Boost::headers
|
||||
)
|
||||
|
||||
# Do not use generator expressions in test sources because the
|
||||
# SOURCES property is processed to gather test suite macros.
|
||||
target_sources(test_bitcoin
|
||||
PRIVATE
|
||||
ipc_tests.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(test_bitcoin bitcoin_ipc_test bitcoin_ipc)
|
||||
@@ -1,3 +0,0 @@
|
||||
Checks:
|
||||
# See: https://github.com/capnproto/capnproto/pull/2417.
|
||||
- "-clang-analyzer-security.ArrayBound"
|
||||
@@ -168,20 +168,7 @@ if(ENABLE_WALLET)
|
||||
endif()
|
||||
|
||||
if(ENABLE_IPC)
|
||||
target_link_libraries(bitcoin_ipc_test
|
||||
PRIVATE
|
||||
core_interface
|
||||
univalue
|
||||
Boost::headers
|
||||
)
|
||||
|
||||
target_sources(test_bitcoin
|
||||
PRIVATE
|
||||
ipc_tests.cpp
|
||||
)
|
||||
target_link_libraries(test_bitcoin bitcoin_ipc_test bitcoin_ipc)
|
||||
|
||||
configure_file(.clang-tidy.in .clang-tidy USE_SOURCE_PERMISSIONS COPYONLY)
|
||||
add_subdirectory(${PROJECT_SOURCE_DIR}/src/ipc/test ipc)
|
||||
endif()
|
||||
|
||||
function(add_boost_test source_file)
|
||||
|
||||
Reference in New Issue
Block a user