aboutsummaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2020-12-21 19:58:27 +0000
committerxiphon <xiphon@protonmail.com>2020-12-23 15:08:42 +0000
commit8d4cda030e445d2b64cc327af125b538e014ecb0 (patch)
tree846a62bdd48dde1e5eb636b7e127ab1bfe3153ef /src/CMakeLists.txt
parentdf771470c28c1efbb5402a755da0ab0dffaecd5f (diff)
downloadmonzero-gui-8d4cda030e445d2b64cc327af125b538e014ecb0.tar.gz
monzero-gui-8d4cda030e445d2b64cc327af125b538e014ecb0.tar.xz
monzero-gui-8d4cda030e445d2b64cc327af125b538e014ecb0.zip
QR-Code-scanner: integrate QUIRC library, implement QrDecoder, drop ZBar
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index e38c7dde..a4c3a15b 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -55,13 +55,6 @@ if(ENABLE_PASS_STRENGTH_METER)
)
endif()
-if(WITH_SCANNER)
- file(GLOB QR_CODE_FILES
- "QR-Code-scanner/*.h"
- "QR-Code-scanner/*.cpp"
- )
-endif()
-
set(EXECUTABLE_FLAG)
if(MINGW)
set(EXECUTABLE_FLAG WIN32)
@@ -84,7 +77,6 @@ endif()
set(monero_wallet_gui_sources
${SOURCE_FILES}
${PASS_STRENGTH_FILES}
- ${QR_CODE_FILES}
${RESOURCES}
)
@@ -128,7 +120,6 @@ target_include_directories(monero-wallet-gui PUBLIC
${X11_INCLUDE_DIR}
${Boost_INCLUDE_DIRS}
${OPENSSL_INCLUDE_DIR}
- ${ZBAR_INCLUDE_DIR}
)
target_compile_definitions(monero-wallet-gui
@@ -159,6 +150,7 @@ target_link_libraries(monero-wallet-gui
${EXTRA_LIBRARIES}
${ICU_LIBRARIES}
openpgp
+ qrdecoder
translations
)
@@ -171,16 +163,14 @@ if(X11_FOUND)
endif()
if(WITH_SCANNER)
- if(NOT ANDROID)
+ target_link_libraries(monero-wallet-gui qrscanner)
+ if(LINUX AND NOT ANDROID)
target_link_libraries(monero-wallet-gui
- ${ZBAR_LIBRARIES}
jpeg
v4l2
v4lconvert
rt
)
- else()
- target_link_libraries(monero-wallet-gui ${ZBAR_LIBRARIES})
endif()
endif()