mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 03:00:14 +08:00
This commit is contained in:
parent
b0ab2ef16d
commit
2122cde787
@ -516,14 +516,20 @@ if (WITH_QT)
|
||||
find_package(Qt4)
|
||||
if (QT4_FOUND)
|
||||
set(HAVE_QT 1)
|
||||
find_package (OpenGL QUIET)
|
||||
#Qt 4.6 is the minimum for OpenGL
|
||||
if (QT_QTOPENGL_FOUND AND OPENGL_FOUND AND QT_VERSION_MINOR GREATER 5)
|
||||
set(HAVE_QT_OPENGL 1)
|
||||
add_definitions(-DHAVE_QT_OPENGL)
|
||||
endif()
|
||||
#add_definitions(-DHAVE_QT)
|
||||
set_property(DIRECTORY PROPERTY COMPILE_DEFINITIONS "HAVE_QT")
|
||||
|
||||
#find_package (OpenGL QUIET)
|
||||
#if (QT_QTOPENGL_FOUND AND OPENGL_FOUND)
|
||||
# set(HAVE_QT_OPENGL 1)
|
||||
# add_definitions(-DHAVE_QT_OPENGL)
|
||||
#endif()
|
||||
find_package (OpenGL QUIET)
|
||||
if (QT_QTOPENGL_FOUND AND OPENGL_FOUND)
|
||||
set(HAVE_QT_OPENGL 1)
|
||||
add_definitions(-DHAVE_QT_OPENGL)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user