mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-24 18:23:26 -03:00
cmake: Add libqrencode
optional package support
This commit is contained in:
parent
57a6e2ef4a
commit
5bb5a4bc75
2 changed files with 11 additions and 0 deletions
|
@ -144,6 +144,13 @@ endif()
|
||||||
|
|
||||||
cmake_dependent_option(ENABLE_EXTERNAL_SIGNER "Enable external signer support." ON "NOT WIN32" OFF)
|
cmake_dependent_option(ENABLE_EXTERNAL_SIGNER "Enable external signer support." ON "NOT WIN32" OFF)
|
||||||
|
|
||||||
|
cmake_dependent_option(WITH_QRENCODE "Enable QR code support." ON "BUILD_GUI" OFF)
|
||||||
|
if(WITH_QRENCODE)
|
||||||
|
find_package(PkgConfig REQUIRED)
|
||||||
|
pkg_check_modules(libqrencode REQUIRED IMPORTED_TARGET libqrencode)
|
||||||
|
set(USE_QRCODE TRUE)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(BUILD_GUI)
|
if(BUILD_GUI)
|
||||||
set(qt_components Core Gui Widgets LinguistTools)
|
set(qt_components Core Gui Widgets LinguistTools)
|
||||||
if(ENABLE_WALLET)
|
if(ENABLE_WALLET)
|
||||||
|
@ -490,6 +497,7 @@ message(" - using NAT-PMP .................... ${WITH_NATPMP}")
|
||||||
message(" - using UPnP ....................... ${WITH_MINIUPNPC}")
|
message(" - using UPnP ....................... ${WITH_MINIUPNPC}")
|
||||||
message(" ZeroMQ .............................. ${WITH_ZMQ}")
|
message(" ZeroMQ .............................. ${WITH_ZMQ}")
|
||||||
message(" USDT tracing ........................ ${WITH_USDT}")
|
message(" USDT tracing ........................ ${WITH_USDT}")
|
||||||
|
message(" QR code (GUI) ....................... ${WITH_QRENCODE}")
|
||||||
message("Tests:")
|
message("Tests:")
|
||||||
message(" test_bitcoin ........................ ${BUILD_TESTS}")
|
message(" test_bitcoin ........................ ${BUILD_TESTS}")
|
||||||
message(" bench_bitcoin ....................... ${BUILD_BENCH}")
|
message(" bench_bitcoin ....................... ${BUILD_BENCH}")
|
||||||
|
|
|
@ -141,6 +141,9 @@
|
||||||
/* Define if BDB support should be compiled in */
|
/* Define if BDB support should be compiled in */
|
||||||
#cmakedefine USE_BDB 1
|
#cmakedefine USE_BDB 1
|
||||||
|
|
||||||
|
/* Define if QR support should be compiled in */
|
||||||
|
#cmakedefine USE_QRCODE 1
|
||||||
|
|
||||||
/* Define if sqlite support should be compiled in */
|
/* Define if sqlite support should be compiled in */
|
||||||
#cmakedefine USE_SQLITE 1
|
#cmakedefine USE_SQLITE 1
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue