File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -144,6 +144,13 @@ endif()
144
144
145
145
cmake_dependent_option (ENABLE_EXTERNAL_SIGNER "Enable external signer support." ON "NOT WIN32" OFF )
146
146
147
+ cmake_dependent_option (WITH_QRENCODE "Enable QR code support." ON "BUILD_GUI" OFF )
148
+ if (WITH_QRENCODE )
149
+ find_package (PkgConfig REQUIRED )
150
+ pkg_check_modules (libqrencode REQUIRED IMPORTED_TARGET libqrencode )
151
+ set (USE_QRCODE TRUE )
152
+ endif ()
153
+
147
154
if (BUILD_GUI )
148
155
set (qt_components Core Gui Widgets LinguistTools )
149
156
if (ENABLE_WALLET )
@@ -490,6 +497,7 @@ message(" - using NAT-PMP .................... ${WITH_NATPMP}")
490
497
message (" - using UPnP ....................... ${WITH_MINIUPNPC} " )
491
498
message (" ZeroMQ .............................. ${WITH_ZMQ} " )
492
499
message (" USDT tracing ........................ ${WITH_USDT} " )
500
+ message (" QR code (GUI) ....................... ${WITH_QRENCODE} " )
493
501
message ("Tests:" )
494
502
message (" test_bitcoin ........................ ${BUILD_TESTS} " )
495
503
message (" bench_bitcoin ....................... ${BUILD_BENCH} " )
Original file line number Diff line number Diff line change 141
141
/* Define if BDB support should be compiled in */
142
142
#cmakedefine USE_BDB 1
143
143
144
+ /* Define if QR support should be compiled in */
145
+ #cmakedefine USE_QRCODE 1
146
+
144
147
/* Define if sqlite support should be compiled in */
145
148
#cmakedefine USE_SQLITE 1
146
149
You can’t perform that action at this time.
0 commit comments