Merge pull request #9439 from eruffaldi:macos_build_opengl_qt5_interop2

This commit is contained in:
Alexander Alekhin 2017-08-23 04:13:50 +00:00
commit b67c64e2c8

View File

@ -1,3 +1,7 @@
if(APPLE)
return()
endif()
if(UNIX)
find_package(X11 QUIET)
if(NOT X11_FOUND)
@ -8,6 +12,8 @@ if(UNIX)
set(SAMPLE_LINKER_DEPS "${X11_LIBRARIES}")
endif()
SET(OPENCV_OPENGL_SAMPLES_REQUIRED_DEPS opencv_core opencv_imgproc opencv_imgcodecs opencv_videoio opencv_highgui)
ocv_check_dependencies(${OPENCV_OPENGL_SAMPLES_REQUIRED_DEPS})