summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKai Pastor <dg0yt@darc.de>2016-03-23 19:26:02 +0100
committerKai Pastor <dg0yt@darc.de>2016-03-30 07:16:50 +0000
commit9bc352e38d6b03fbb12a359a7bdfc8d22aa7e192 (patch)
treeb07bafc34b90921db205995f676fc7dfe60b5574 /src
parent8875e9fe825f3f4d39a25fe29006245f4801e595 (diff)
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 'src')
-rw-r--r--src/corelib/Qt5CTestMacros.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/Qt5CTestMacros.cmake b/src/corelib/Qt5CTestMacros.cmake
index 6451f65b55..a1044fa89a 100644
--- a/src/corelib/Qt5CTestMacros.cmake
+++ b/src/corelib/Qt5CTestMacros.cmake
@@ -39,6 +39,9 @@ if (CMAKE_VERBOSE_MAKEFILE)
list(APPEND BUILD_OPTIONS_LIST "-DCMAKE_VERBOSE_MAKEFILE=1")
endif()
+if (NO_GUI)
+ list(APPEND BUILD_OPTIONS_LIST "-DNO_GUI=True")
+endif()
if (NO_WIDGETS)
list(APPEND BUILD_OPTIONS_LIST "-DNO_WIDGETS=True")
endif()