File: 0001-Install-ZXingOpenCV-example-tool.patch

package info (click to toggle)
zxing-cpp 3.0.2%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 30,204 kB
  • sloc: ansic: 69,384; cpp: 34,624; php: 2,790; python: 199; makefile: 31; sh: 3
file content (21 lines) | stat: -rw-r--r-- 788 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Boyuan Yang <byang@debian.org>
Date: Tue, 10 Mar 2026 12:14:09 -0400
Subject: Install ZXingOpenCV example tool

Bug-Debian: https://bugs.debian.org/993012
---
 example/CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt
index 2782ef3..b3c7281 100644
--- a/example/CMakeLists.txt
+++ b/example/CMakeLists.txt
@@ -29,6 +29,7 @@ if (ZXING_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})
     else ()
         message("INFO: OpenCV not found, skipping ZXingOpenCV example")
     endif()