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:
parent
1fa03ced47
commit
c3de886b61
@ -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
|
||||
|
23
tests/auto/gui/qopengl/CMakeLists.txt
Normal file
23
tests/auto/gui/qopengl/CMakeLists.txt
Normal 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
|
||||
)
|
19
tests/auto/gui/qopenglconfig/CMakeLists.txt
Normal file
19
tests/auto/gui/qopenglconfig/CMakeLists.txt
Normal 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}
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user