Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/thirdparty/zxing-cpp/example/CMakeLists.txt @ 2:b50eed0cc0ef upstream
ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4.
The directory name has changed: no version number in the expanded directory now.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 15 Sep 2025 11:43:07 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1:1d09e1dec1d9 | 2:b50eed0cc0ef |
|---|---|
| 1 zxing_add_package_stb() | |
| 2 | |
| 3 include (GNUInstallDirs) | |
| 4 | |
| 5 if (ZXING_WRITERS) | |
| 6 add_executable (ZXingWriter ZXingWriter.cpp) | |
| 7 | |
| 8 target_link_libraries (ZXingWriter ZXing::ZXing stb::stb) | |
| 9 | |
| 10 add_test(NAME ZXingWriterTest COMMAND ZXingWriter qrcode "I have the best words." test.png) | |
| 11 | |
| 12 install(TARGETS ZXingWriter DESTINATION ${CMAKE_INSTALL_BINDIR}) | |
| 13 endif() | |
| 14 | |
| 15 if (ZXING_READERS) | |
| 16 add_executable (ZXingReader ZXingReader.cpp) | |
| 17 | |
| 18 target_link_libraries (ZXingReader ZXing::ZXing stb::stb) | |
| 19 | |
| 20 add_test(NAME ZXingReaderTest COMMAND ZXingReader -fast -format qrcode test.png) # see above | |
| 21 | |
| 22 install(TARGETS ZXingReader DESTINATION ${CMAKE_INSTALL_BINDIR}) | |
| 23 endif() | |
| 24 | |
| 25 find_package(Qt6 COMPONENTS Gui Multimedia Quick QUIET) | |
| 26 if (NOT (Qt5_FOUND OR Qt6_FOUND)) | |
| 27 message("INFO: Qt (Gui/Multimedia/Quick) not found, skipping Qt examples") | |
| 28 endif() | |
| 29 | |
| 30 set(CMAKE_AUTOMOC ON) | |
| 31 set(CMAKE_AUTORCC ON) | |
| 32 | |
| 33 if (ZXING_READERS) | |
| 34 if (TARGET Qt::Gui) | |
| 35 add_executable (ZXingQtReader ZXingQtReader.cpp ZXingQtReader.h) | |
| 36 target_link_libraries(ZXingQtReader ZXing::ZXing Qt::Gui) | |
| 37 endif() | |
| 38 | |
| 39 if (TARGET Qt::Multimedia AND TARGET Qt::Quick) | |
| 40 add_executable(ZXingQtCamReader ZXingQtCamReader.cpp ZXingQtCamReader.qrc ZXingQtReader.h) | |
| 41 target_link_libraries(ZXingQtCamReader ZXing::ZXing Qt::Gui Qt::Multimedia Qt::Quick) | |
| 42 endif() | |
| 43 | |
| 44 find_package(OpenCV QUIET) | |
| 45 if (OpenCV_FOUND) | |
| 46 add_executable (ZXingOpenCV ZXingOpenCV.cpp) | |
| 47 target_include_directories (ZXingOpenCV PRIVATE ${OpenCV_INCLUDE_DIRS}) | |
| 48 target_link_libraries (ZXingOpenCV ZXing::ZXing ${OpenCV_LIBS}) | |
| 49 else () | |
| 50 message("INFO: OpenCV not found, skipping ZXingOpenCV example") | |
| 51 endif() | |
| 52 endif() | |
| 53 | |
| 54 if (ZXING_WRITERS) | |
| 55 if (TARGET Qt::Gui) | |
| 56 add_executable (ZXingQtWriter ZXingQtWriter.cpp) | |
| 57 target_link_libraries(ZXingQtWriter ZXing::ZXing Qt::Gui) | |
| 58 endif() | |
| 59 endif() |
