summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2013-03-14 14:17:52 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-14 19:33:49 +0100
commit488532c4ecb099efd1807b1dd5f237609f2299e8 (patch)
tree0507c3fd551a748434752773a144b94e59d22aa9 /tests
parent78e136480a80f00160a77bf93488b4df8ac74f30 (diff)
downloadqtscript-488532c4ecb099efd1807b1dd5f237609f2299e8.tar.gz
Test the cmake scripttools module only if widgets is available.
Change-Id: Ia124db1328e9d6b87c9b1b6858103f81e1678355 Reviewed-by: Alexander Neundorf <neundorf@kde.org> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/cmake/CMakeLists.txt13
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/auto/cmake/CMakeLists.txt b/tests/auto/cmake/CMakeLists.txt
index f381519..82dd5ef 100644
--- a/tests/auto/cmake/CMakeLists.txt
+++ b/tests/auto/cmake/CMakeLists.txt
@@ -9,7 +9,16 @@ find_package(Qt5Core REQUIRED)
include("${_Qt5CTestMacros}")
+set(qt_module_includes
+ Script QScriptEngine
+)
+
+if (NOT NO_WIDGETS)
+ list(APPEND qt_module_includes
+ ScriptTools QScriptEngineDebugger
+ )
+endif()
+
test_module_includes(
- Script QScriptEngine
- ScriptTools QScriptEngineDebugger
+ ${qt_module_includes}
)