Inside Bitcoin
Opening the selected file…
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) 2025-present The Bitcoin Core developers2# Distributed under the MIT software license, see the accompanying3# file COPYING or https://opensource.org/license/mit/.5include_guard(GLOBAL)6include(GNUInstallDirs)8function(install_binary_component component)9cmake_parse_arguments(PARSE_ARGV 110IC # prefix11"HAS_MANPAGE;INTERNAL" # options12"" # one_value_keywords13"" # multi_value_keywords14)15set(target_name ${component})16if(IC_INTERNAL)17set(runtime_dest ${CMAKE_INSTALL_LIBEXECDIR})18else()19set(runtime_dest ${CMAKE_INSTALL_BINDIR})20endif()21install(TARGETS ${target_name}22RUNTIME DESTINATION ${runtime_dest}23COMPONENT ${component}24)25if(INSTALL_MAN AND IC_HAS_MANPAGE)26install(FILES ${PROJECT_SOURCE_DIR}/doc/man/${target_name}.127DESTINATION ${CMAKE_INSTALL_MANDIR}/man128COMPONENT ${component}29)30endif()31endfunction()
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.