From 1fa03ced4723ac4ff3ae26dc1875b6942621b9be Mon Sep 17 00:00:00 2001 From: Leander Beernaert Date: Mon, 28 Oct 2019 09:45:27 +0100 Subject: [PATCH] Port rhi tests Change-Id: I3bf5731696a0647bf0e62758eb3d1742ba097041 Reviewed-by: Qt CMake Build Bot Reviewed-by: Alexandru Croitor --- tests/auto/gui/CMakeLists.txt | 2 +- tests/auto/gui/rhi/CMakeLists.txt | 4 ++++ tests/auto/gui/rhi/qrhi/CMakeLists.txt | 27 +++++++++++++++++++++++ tests/auto/gui/rhi/qshader/CMakeLists.txt | 27 +++++++++++++++++++++++ 4 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 tests/auto/gui/rhi/CMakeLists.txt create mode 100644 tests/auto/gui/rhi/qrhi/CMakeLists.txt create mode 100644 tests/auto/gui/rhi/qshader/CMakeLists.txt diff --git a/tests/auto/gui/CMakeLists.txt b/tests/auto/gui/CMakeLists.txt index fd4cf176abb..e64a697f750 100644 --- a/tests/auto/gui/CMakeLists.txt +++ b/tests/auto/gui/CMakeLists.txt @@ -8,7 +8,7 @@ if(NOT APPLE_UIKIT) # add_subdirectory(text) # special case missing project add_subdirectory(util) add_subdirectory(itemmodels) - # add_subdirectory(rhi) # special case missing project + add_subdirectory(rhi) endif() if(QT_FEATURE_opengl AND NOT APPLE_UIKIT AND NOT WINRT) # add_subdirectory(qopenglconfig) # special case missing project diff --git a/tests/auto/gui/rhi/CMakeLists.txt b/tests/auto/gui/rhi/CMakeLists.txt new file mode 100644 index 00000000000..786e121f002 --- /dev/null +++ b/tests/auto/gui/rhi/CMakeLists.txt @@ -0,0 +1,4 @@ +# Generated from rhi.pro. + +add_subdirectory(qshader) +add_subdirectory(qrhi) diff --git a/tests/auto/gui/rhi/qrhi/CMakeLists.txt b/tests/auto/gui/rhi/qrhi/CMakeLists.txt new file mode 100644 index 00000000000..27c8a731e79 --- /dev/null +++ b/tests/auto/gui/rhi/qrhi/CMakeLists.txt @@ -0,0 +1,27 @@ +# Generated from qrhi.pro. + +##################################################################### +## tst_qrhi Test: +##################################################################### + +add_qt_test(tst_qrhi + SOURCES + tst_qrhi.cpp + LIBRARIES + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui +) + +# Resources: +set(qrhi_resource_files + "data" +) + +add_qt_resource(tst_qrhi "qrhi" + PREFIX + "/" + FILES + ${qrhi_resource_files} +) + diff --git a/tests/auto/gui/rhi/qshader/CMakeLists.txt b/tests/auto/gui/rhi/qshader/CMakeLists.txt new file mode 100644 index 00000000000..9d9352ef1ef --- /dev/null +++ b/tests/auto/gui/rhi/qshader/CMakeLists.txt @@ -0,0 +1,27 @@ +# Generated from qshader.pro. + +##################################################################### +## tst_qshader Test: +##################################################################### + +add_qt_test(tst_qshader + SOURCES + tst_qshader.cpp + LIBRARIES + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui +) + +# Resources: +set(qshader_resource_files + "data" +) + +add_qt_resource(tst_qshader "qshader" + PREFIX + "/" + FILES + ${qshader_resource_files} +) +