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) 2024-present The Bitcoin Core developers2# Distributed under the MIT software license, see the accompanying3# file COPYING or https://opensource.org/license/mit/.5#[=======================================================================[6FindQRencode7------------9Finds the QRencode header and library.11This is a wrapper around find_package()/pkg_check_modules() commands that:12- facilitates searching in various build environments13- prints a standard log message15#]=======================================================================]17find_path(QRencode_INCLUDE_DIR18NAMES qrencode.h19)20find_library(QRencode_LIBRARY_RELEASE21NAMES qrencode22)23find_library(QRencode_LIBRARY_DEBUG24NAMES qrencoded qrencode25)27include(FindPackageHandleStandardArgs)28find_package_handle_standard_args(QRencode29REQUIRED_VARS QRencode_LIBRARY_RELEASE QRencode_INCLUDE_DIR30)32if(QRencode_FOUND AND NOT TARGET QRencode::QRencode)33add_library(QRencode::QRencode UNKNOWN IMPORTED)34set_target_properties(QRencode::QRencode PROPERTIES35IMPORTED_CONFIGURATIONS RELEASE36IMPORTED_LOCATION_RELEASE "${QRencode_LIBRARY_RELEASE}"37INTERFACE_INCLUDE_DIRECTORIES "${QRencode_INCLUDE_DIR}"38)39if(QRencode_LIBRARY_DEBUG)40set_property(TARGET QRencode::QRencode APPEND PROPERTY41IMPORTED_CONFIGURATIONS DEBUG42)43set_target_properties(QRencode::QRencode PROPERTIES44IMPORTED_LOCATION_DEBUG "${QRencode_LIBRARY_DEBUG}"45)46endif()47endif()49mark_as_advanced(50QRencode_INCLUDE_DIR51QRencode_LIBRARY_RELEASE52QRencode_LIBRARY_DEBUG53)
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.