Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1# Copyright (c) 2024-present The Bitcoin Core developers2# Distributed under the MIT software license, see the accompanying3# file COPYING or https://opensource.org/license/mit/.5set(CMAKE_AUTOMOC_MOC_OPTIONS "-p${CMAKE_CURRENT_SOURCE_DIR}")7add_executable(test_bitcoin-qt8apptests.cpp9optiontests.cpp10rpcnestedtests.cpp11test_main.cpp12uritests.cpp13util.cpp14../../init/bitcoin-qt.cpp15)17add_windows_application_manifest(test_bitcoin-qt)19target_link_libraries(test_bitcoin-qt20core_interface21bitcoinqt22test_util23bitcoin_node24Boost::headers25Qt6::Test26)28import_plugins(test_bitcoin-qt)30if(ENABLE_WALLET)31target_sources(test_bitcoin-qt32PRIVATE33addressbooktests.cpp34wallettests.cpp35../../wallet/test/wallet_test_fixture.cpp36)37endif()39add_test(NAME test_bitcoin-qt40COMMAND test_bitcoin-qt41)42if(WIN32 AND VCPKG_TARGET_TRIPLET)43set(plugin_path "$<SHELL_PATH:$<PATH:GET_PARENT_PATH,$<PATH:GET_PARENT_PATH,$<TARGET_PROPERTY:Qt6::QWindowsIntegrationPlugin,LOCATION_$<CONFIG>>>>>")44set_property(TEST test_bitcoin-qt APPEND PROPERTY45ENVIRONMENT_MODIFICATION46# On Windows, vcpkg configures Qt with `-opengl dynamic`, which makes47# the "minimal" platform plugin unusable due to internal Qt bugs.48QT_QPA_PLATFORM=set:windows49QT_PLUGIN_PATH=set:${plugin_path}50)51unset(plugin_path)52endif()54install_binary_component(test_bitcoin-qt INTERNAL)
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.