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/.5#[=======================================================================[6FindQt7------9Finds the Qt headers and libraries.11This is a wrapper around find_package() command that:12- facilitates searching in various build environments13- prints a standard log message15#]=======================================================================]17set(_qt_homebrew_prefix)18if(CMAKE_HOST_APPLE)19find_program(HOMEBREW_EXECUTABLE brew)20if(HOMEBREW_EXECUTABLE)21execute_process(22COMMAND ${HOMEBREW_EXECUTABLE} --prefix qt@${Qt_FIND_VERSION_MAJOR}23OUTPUT_VARIABLE _qt_homebrew_prefix24ERROR_QUIET25OUTPUT_STRIP_TRAILING_WHITESPACE26)27endif()28endif()30find_package(Qt${Qt_FIND_VERSION_MAJOR} ${Qt_FIND_VERSION}31COMPONENTS ${Qt_FIND_COMPONENTS}32HINTS ${_qt_homebrew_prefix}33PATH_SUFFIXES Qt${Qt_FIND_VERSION_MAJOR} # Required on OpenBSD systems.34)35unset(_qt_homebrew_prefix)37include(FindPackageHandleStandardArgs)38find_package_handle_standard_args(Qt39REQUIRED_VARS Qt${Qt_FIND_VERSION_MAJOR}_DIR Qt${Qt_FIND_VERSION_MAJOR}_FOUND40VERSION_VAR Qt${Qt_FIND_VERSION_MAJOR}_VERSION41)43foreach(component IN LISTS Qt_FIND_COMPONENTS ITEMS "")44mark_as_advanced(Qt${Qt_FIND_VERSION_MAJOR}${component}_DIR)45endforeach()
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.