File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,11 @@ if (BUILD_READERS)
23
23
endif ()
24
24
25
25
if (BUILD_READERS )
26
- find_package (Qt5 COMPONENTS Gui Multimedia Quick )
26
+ find_package (Qt5 COMPONENTS Gui Multimedia Quick QUIET )
27
+ if (NOT (Qt5_FOUND OR Qt6_FOUND ))
28
+ message ("INFO: Qt (Gui/Multimedia/Quick) not found, skipping Qt examples" )
29
+ endif ()
30
+
27
31
set (CMAKE_AUTOMOC ON )
28
32
set (CMAKE_AUTORCC ON )
29
33
@@ -37,10 +41,12 @@ if (BUILD_READERS)
37
41
target_link_libraries (ZXingQtCamReader ZXing::ZXing Qt::Gui Qt::Multimedia Qt::Quick )
38
42
endif ()
39
43
40
- find_package (OpenCV )
44
+ find_package (OpenCV QUIET )
41
45
if (OpenCV_FOUND )
42
46
add_executable (ZXingOpenCV ZXingOpenCV.cpp )
43
47
target_include_directories (ZXingOpenCV PRIVATE ${OpenCV_INCLUDE_DIRS} )
44
48
target_link_libraries (ZXingOpenCV ZXing::ZXing ${OpenCV_LIBS} )
49
+ else ()
50
+ message ("INFO: OpenCV not found, skipping ZXingOpenCV example" )
45
51
endif ()
46
52
endif ()
You can’t perform that action at this time.
0 commit comments