[neon/backports-jammy/zxing-cpp-jammy/Neon/release] debian: install Qt and OpenCV examples as well (closes: #993012)

Carlos De Maine null at kde.org
Mon Jan 16 11:56:17 GMT 2023


Git commit 7f1098819cec8e59198fc0b5e0ca316b8c45e5b1 by Carlos De Maine.
Committed on 16/01/2023 at 11:52.
Pushed by carlosdem into branch 'Neon/release'.

install Qt and OpenCV examples as well (closes: #993012)

A  +26   -0    debian/patches/0006-install-examples.patch
M  +1    -0    debian/patches/series
A  +5    -0    debian/zxing-cpp-tools.install

https://invent.kde.org/neon/backports-jammy/zxing-cpp-jammy/commit/7f1098819cec8e59198fc0b5e0ca316b8c45e5b1

diff --git a/debian/patches/0006-install-examples.patch b/debian/patches/0006-install-examples.patch
new file mode 100644
index 0000000..521e5eb
--- /dev/null
+++ b/debian/patches/0006-install-examples.patch
@@ -0,0 +1,26 @@
+Description: install qt and opencv examples
+Author: Johannes Schauer Marin Rodrigues <josch at debian.org>
+
+--- a/example/CMakeLists.txt
++++ b/example/CMakeLists.txt
+@@ -33,11 +33,13 @@ if (BUILD_READERS)
+     if (TARGET Qt::Gui)
+         add_executable (ZXingQtReader ZXingQtReader.cpp ZXingQtReader.h)
+         target_link_libraries(ZXingQtReader ZXing::ZXing Qt::Gui)
++        install(TARGETS ZXingQtReader DESTINATION ${CMAKE_INSTALL_BINDIR})
+     endif()
+ 
+     if (TARGET Qt::Multimedia AND TARGET Qt::Quick)
+         add_executable(ZXingQtCamReader ZXingQtCamReader.cpp ZXingQtCamReader.qrc ZXingQtReader.h)
+         target_link_libraries(ZXingQtCamReader ZXing::ZXing Qt::Gui Qt::Multimedia Qt::Quick)
++        install(TARGETS ZXingQtCamReader DESTINATION ${CMAKE_INSTALL_BINDIR})
+     endif()
+ 
+     find_package(OpenCV)
+@@ -45,5 +47,6 @@ if (BUILD_READERS)
+         add_executable (ZXingOpenCV ZXingOpenCV.cpp)
+         target_include_directories (ZXingOpenCV PRIVATE ${OpenCV_INCLUDE_DIRS})
+         target_link_libraries (ZXingOpenCV ZXing::ZXing ${OpenCV_LIBS})
++        install(TARGETS ZXingOpenCV DESTINATION ${CMAKE_INSTALL_BINDIR})
+     endif()
+ endif()
diff --git a/debian/patches/series b/debian/patches/series
index 7d742b3..c8c5f4f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@
 0003-Disable-tests-without-test-file.patch
 0004-Bump-SONAME-to-2.patch
 0005-test-update-to-libfmt-v9.0.0.patch
+0006-install-examples.patch
diff --git a/debian/zxing-cpp-tools.install b/debian/zxing-cpp-tools.install
new file mode 100644
index 0000000..4be2e44
--- /dev/null
+++ b/debian/zxing-cpp-tools.install
@@ -0,0 +1,5 @@
+usr/bin/ZXingReader
+usr/bin/ZXingWriter
+usr/bin/ZXingOpenCV
+usr/bin/ZXingQtCamReader
+usr/bin/ZXingQtReader



More information about the Neon-commits mailing list