Port qopengl and qopenglconfig tests

Change-Id: Ic3b61fb7f23cb884552126038d0bdf289d0cbc6a
Reviewed-by: Qt CMake Build Bot
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Leander Beernaert 2019-10-28 09:40:08 +01:00
parent 1fa03ced47
commit c3de886b61
3 changed files with 44 additions and 2 deletions

View File

@ -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

View File

@ -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
)

View File

@ -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}
)