@@ -327,3 +327,66 @@ endmacro()
327327# installation directory for the status.
328328find_package_handle_standard_args(OpenCV REQUIRED_VARS OpenCV_INSTALL_PATH
329329 VERSION_VAR OpenCV_VERSION ${_OpenCV_FPHSA_ARGS} )
330+
331+ include (CMakeFindDependencyMacro)
332+
333+ if ("@ZLIB_FOUND@" )
334+ find_dependency(ZLIB CONFIG)
335+ endif ()
336+
337+ if ("@TIFF_FOUND@" )
338+ find_dependency(TIFF CONFIG)
339+ endif ()
340+
341+ if ("@PNG_FOUND@" )
342+ find_dependency(PNG CONFIG)
343+ endif ()
344+
345+ if ("@JPEG_FOUND@" )
346+ find_dependency(JPEG CONFIG)
347+ endif ()
348+
349+ if ("@JASPER_FOUND@" )
350+ find_dependency(jasper CONFIG)
351+ endif ()
352+
353+ if ("@WEBP_FOUND@" )
354+ find_dependency(WebP CONFIG)
355+ endif ()
356+
357+ if ("@WITH_FFMPEG@" )
358+ find_dependency(ffmpeg CONFIG)
359+ endif ()
360+
361+ # AWP: Qt5 dependencies -- start
362+ if ("@Qt5Core_FOUND@" )
363+ find_dependency(Qt5Core)
364+ endif ()
365+
366+ if ("@Qt5Gui_FOUND@" )
367+ find_dependency(Qt5Gui)
368+ endif ()
369+
370+ if ("@Qt5Widgets_FOUND@" )
371+ find_dependency(Qt5Widgets)
372+ _qt_cmake_extra_helpers_add_interface(opencv_highgui Qt5::Widgets)
373+ if (NOT "@BUILD_SHARED_LIBS@" )
374+ # function from Hunter's QtCMakeExtra project
375+ _qt_cmake_extra_helpers_add_source(
376+ opencv_highgui "static_opencv_qt_resources.cpp"
377+ )
378+ endif ()
379+ endif ()
380+
381+ if ("@Qt5Test_FOUND@" )
382+ find_dependency(Qt5Test)
383+ endif ()
384+
385+ if ("@Qt5Concurrent_FOUND@" )
386+ find_dependency(Qt5Concurrent)
387+ endif ()
388+
389+ if ("@Qt5OpenGL_FOUND@" )
390+ find_dependency(Qt5OpenGL)
391+ endif ()
392+ # AWP: Qt5 dependencies -- end
0 commit comments