qt5base-lts/examples/widgets
Simon Hausmann 38cd18384f Fix OpenGL vs. GLESv2 linkage, attempt number three
We introduced WrapOpenGL to link against either desktop GL or GLESv2
depending on the GL feature in QtGui. This works "fine", with two
caveats:

    (1) find_package(WrapOpenGL) must be called after
    find_package(Qt5Gui) in order for the feature check in
    FindWrapOpenGL.cmake to work. That's error prone.

    (2) More and more places are popping up, in particular examples,
    where GL linkage is required due to inline functions in Qt that
    forward to GL functions - such as on Android.

    This in particular explains the qmake behavior of making the GL
    linkage (desktop _or_ GLES) a public dependency of QtGui, so only
    Gui linkage is required.

Those two aspects combined are the nail in the coffin of FindWrapOpenGL
and it would seem much easier to simply make the Desktop GL vs. GLES
decision once in Gui's CMakeLists.txt and let Qt5GuiDependencies.cmake
propagate this well. This allows us to get rid of plenty of special
cases as well.

Change-Id: I3a7e8af49537ce5f215f24470e075a4ae9aeb944
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2019-06-05 09:38:02 +00:00
..
animation Rerun pro2cmake on projects that use .ui files 2019-05-22 14:58:24 +00:00
desktop Merge commit 'dev' into 'wip/cmake-merge' 2019-04-16 16:32:08 +02:00
dialogs Merge remote-tracking branch 'origin/dev' into wip/cmake 2019-06-03 15:14:42 +02:00
doc Fix qdoc warnings for Qt 5.14 2019-05-21 17:39:58 +02:00
draganddrop Merge commit 'dev' into 'wip/cmake-merge' 2019-04-16 16:32:08 +02:00
effects Merge commit 'dev' into 'wip/cmake-merge' 2019-04-16 16:32:08 +02:00
gestures Merge commit 'dev' into 'wip/cmake-merge' 2019-04-16 16:32:08 +02:00
graphicsview Fix OpenGL vs. GLESv2 linkage, attempt number three 2019-06-05 09:38:02 +00:00
itemviews Rerun pro2cmake on projects that use .ui files 2019-05-22 14:58:24 +00:00
layouts Merge commit 'dev' into 'wip/cmake-merge' 2019-04-16 16:32:08 +02:00
mac CMake: Add widgets examples 2019-03-26 15:25:39 +00:00
mainwindows Merge commit 'dev' into 'wip/cmake-merge' 2019-04-16 16:32:08 +02:00
painting Merge remote-tracking branch 'origin/dev' into wip/cmake 2019-06-03 15:51:20 +02:00
qnx/foreignwindows Basic foreign window support for QNX 2019-05-01 13:49:18 +00:00
richtext Merge remote-tracking branch 'origin/dev' into wip/cmake 2019-06-03 15:14:42 +02:00
scroller Merge commit 'dev' into 'wip/cmake-merge' 2019-04-16 16:32:08 +02:00
statemachine Merge commit 'dev' into 'wip/cmake-merge' 2019-04-16 16:32:08 +02:00
tools Merge remote-tracking branch 'origin/dev' into wip/cmake 2019-06-03 15:14:42 +02:00
touch Rerun pro2cmake on projects that use .ui files 2019-05-22 14:58:24 +00:00
tutorials Rerun pro2cmake on projects that use .ui files 2019-05-22 14:58:24 +00:00
widgets Merge remote-tracking branch 'origin/dev' into wip/cmake 2019-06-03 15:51:20 +02:00
windowcontainer CMake: Add widgets examples 2019-03-26 15:25:39 +00:00
CMakeLists.txt CMake: Add widgets examples 2019-03-26 15:25:39 +00:00
widgets.pro Merge remote-tracking branch 'origin/5.11' into 5.12 2018-10-17 10:35:28 +02:00