diff options
author | Kai Pastor <dg0yt@darc.de> | 2016-03-23 19:26:02 +0100 |
---|---|---|
committer | Kai Pastor <dg0yt@darc.de> | 2016-03-30 07:16:50 +0000 |
commit | 9bc352e38d6b03fbb12a359a7bdfc8d22aa7e192 (patch) | |
tree | b07bafc34b90921db205995f676fc7dfe60b5574 /tests/auto/cmake | |
parent | 8875e9fe825f3f4d39a25fe29006245f4801e595 (diff) | |
download | qtbase-9bc352e38d6b03fbb12a359a7bdfc8d22aa7e192.tar.gz |
Enable cmake auto tests for -no-gui
This change disables tests which require QtGui.
Change-Id: Ib647afd086f54536054cb4c0cde5696d762ee8c4
Reviewed-by: Stephen Kelly <steveire@gmail.com>
Reviewed-by: Kevin Funk <kevin.funk@kdab.com>
Diffstat (limited to 'tests/auto/cmake')
-rw-r--r-- | tests/auto/cmake/CMakeLists.txt | 7 | ||||
-rw-r--r-- | tests/auto/cmake/test_testlib_definitions/CMakeLists.txt | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/tests/auto/cmake/CMakeLists.txt b/tests/auto/cmake/CMakeLists.txt index 1abbef0d68..c780096854 100644 --- a/tests/auto/cmake/CMakeLists.txt +++ b/tests/auto/cmake/CMakeLists.txt @@ -116,13 +116,18 @@ endif() set(qt_module_includes Core QObject - Gui QImage Network QHostInfo Sql QSqlError Test QTestEventList Xml QDomDocument ) +if (NOT NO_GUI) + list(APPEND qt_module_includes + Gui QImage + ) +endif() + if (NOT NO_WIDGETS) list(APPEND qt_module_includes Widgets QWidget diff --git a/tests/auto/cmake/test_testlib_definitions/CMakeLists.txt b/tests/auto/cmake/test_testlib_definitions/CMakeLists.txt index cc54bf5bc3..6fe7e56d24 100644 --- a/tests/auto/cmake/test_testlib_definitions/CMakeLists.txt +++ b/tests/auto/cmake/test_testlib_definitions/CMakeLists.txt @@ -34,7 +34,9 @@ macro(test_testlib_project _module) endmacro() add_subdirectory(core_only) -add_subdirectory(gui) +if(NOT NO_GUI) + add_subdirectory(gui) +endif() if(NOT NO_WIDGETS) add_subdirectory(widgets) endif() |