Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
961251f0
Commit
961251f0
authored
Jun 24, 2013
by
Roman Donchenko
Committed by
OpenCV Buildbot
Jun 24, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1029 from SpecLad:have-qt-config
parents
3bab7391
37d19b9c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
OpenCVFindLibsGUI.cmake
cmake/OpenCVFindLibsGUI.cmake
+0
-3
cvconfig.h.cmake
cmake/templates/cvconfig.h.cmake
+6
-0
window_QT.cpp
modules/highgui/src/window_QT.cpp
+1
-0
No files found.
cmake/OpenCVFindLibsGUI.cmake
View file @
961251f0
...
...
@@ -24,7 +24,6 @@ if(WITH_QT)
if
(
Qt5Core_FOUND AND Qt5Gui_FOUND AND Qt5Widgets_FOUND AND Qt5Test_FOUND AND Qt5Concurrent_FOUND
)
set
(
HAVE_QT5 ON
)
set
(
HAVE_QT ON
)
add_definitions
(
-DHAVE_QT
)
find_package
(
Qt5OpenGL
)
if
(
Qt5OpenGL_FOUND
)
set
(
QT_QTOPENGL_FOUND ON
)
...
...
@@ -36,7 +35,6 @@ if(WITH_QT)
find_package
(
Qt4 REQUIRED QtCore QtGui QtTest
)
if
(
QT4_FOUND
)
set
(
HAVE_QT TRUE
)
add_definitions
(
-DHAVE_QT
)
# We need to define the macro this way, using cvconfig.h does not work
endif
()
endif
()
endif
()
...
...
@@ -61,7 +59,6 @@ if(WITH_OPENGL)
list
(
APPEND OPENCV_LINKER_LIBS
${
OPENGL_LIBRARIES
}
)
if
(
QT_QTOPENGL_FOUND
)
set
(
HAVE_QT_OPENGL TRUE
)
add_definitions
(
-DHAVE_QT_OPENGL
)
else
()
ocv_include_directories
(
${
OPENGL_INCLUDE_DIR
}
)
endif
()
...
...
cmake/templates/cvconfig.h.cmake
View file @
961251f0
...
...
@@ -228,3 +228,9 @@
/* Clp support */
#cmakedefine HAVE_CLP
/* Qt support */
#cmakedefine HAVE_QT
/* Qt OpenGL support */
#cmakedefine HAVE_QT_OPENGL
modules/highgui/src/window_QT.cpp
View file @
961251f0
...
...
@@ -38,6 +38,7 @@
//--------------------Google Code 2010 -- Yannick Verdie--------------------//
#include "precomp.hpp"
#if defined(HAVE_QT)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment