diff options
author | Leander Beernaert <leander.beernaert@qt.io> | 2019-10-28 09:40:08 +0100 |
---|---|---|
committer | Leander Beernaert <leander.beernaert@qt.io> | 2019-10-28 12:04:59 +0000 |
commit | c3de886b61878c072e05b1067a3966148ea8d15a (patch) | |
tree | 4c189bd1c38c48a9c96811329fe0d96639252fb9 | |
parent | 1fa03ced4723ac4ff3ae26dc1875b6942621b9be (diff) |
Port qopengl and qopenglconfig tests
Change-Id: Ic3b61fb7f23cb884552126038d0bdf289d0cbc6a
Reviewed-by: Qt CMake Build Bot
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r-- | tests/auto/gui/CMakeLists.txt | 4 | ||||
-rw-r--r-- | tests/auto/gui/qopengl/CMakeLists.txt | 23 | ||||
-rw-r--r-- | tests/auto/gui/qopenglconfig/CMakeLists.txt | 19 |
3 files changed, 44 insertions, 2 deletions
diff --git a/tests/auto/gui/CMakeLists.txt b/tests/auto/gui/CMakeLists.txt index e64a697f75..4b93bc2c85 100644 --- a/tests/auto/gui/CMakeLists.txt +++ b/tests/auto/gui/CMakeLists.txt @@ -11,8 +11,8 @@ if(NOT APPLE_UIKIT) add_subdirectory(rhi) endif() if(QT_FEATURE_opengl AND NOT APPLE_UIKIT AND NOT WINRT) - # add_subdirectory(qopenglconfig) # special case missing project - # add_subdirectory(qopengl) # special case missing project + add_subdirectory(qopenglconfig) + add_subdirectory(qopengl) endif() if(QT_FEATURE_vulkan AND NOT APPLE_UIKIT) # add_subdirectory(qvulkan) # special case missing project diff --git a/tests/auto/gui/qopengl/CMakeLists.txt b/tests/auto/gui/qopengl/CMakeLists.txt new file mode 100644 index 0000000000..d488c808f9 --- /dev/null +++ b/tests/auto/gui/qopengl/CMakeLists.txt @@ -0,0 +1,23 @@ +# Generated from qopengl.pro. + +##################################################################### +## tst_qopengl Test: +##################################################################### + +add_qt_test(tst_qopengl + SOURCES + tst_qopengl.cpp + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui +) + +## Scopes: +##################################################################### + +extend_target(tst_qopengl CONDITION LINUX AND QT_FEATURE_xcb AND QT_FEATURE_xcb_glx_plugin + DEFINES + USE_GLX +) diff --git a/tests/auto/gui/qopenglconfig/CMakeLists.txt b/tests/auto/gui/qopenglconfig/CMakeLists.txt new file mode 100644 index 0000000000..bcac684cf9 --- /dev/null +++ b/tests/auto/gui/qopenglconfig/CMakeLists.txt @@ -0,0 +1,19 @@ +# Generated from qopenglconfig.pro. + +##################################################################### +## tst_qopenglconfig Test: +##################################################################### + +# Collect test data +list(APPEND test_data "buglist.json") + +add_qt_test(tst_qopenglconfig + SOURCES + tst_qopenglconfig.cpp + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui + TESTDATA ${test_data} +) |