From 3c4574e3631b998d228a33fe2186ea6370a69193 Mon Sep 17 00:00:00 2001
From: Stephen Kelly <stephen.kelly@kdab.com>
Date: Fri, 19 Oct 2012 17:20:44 +0200
Subject: [PATCH] CMake: Add a test for module includes

Change-Id: Ie9fd7929c1ea22f8acf51bafce64ade74d51a00e
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
---
 tests/auto/cmake/CMakeLists.txt | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tests/auto/cmake/CMakeLists.txt b/tests/auto/cmake/CMakeLists.txt
index 4f15a69ec8..43f826db02 100644
--- a/tests/auto/cmake/CMakeLists.txt
+++ b/tests/auto/cmake/CMakeLists.txt
@@ -10,3 +10,10 @@ find_package(Qt5Core REQUIRED)
 include("${_Qt5CTestMacros}")
 
 expect_pass(test_modules)
+
+set(Qt5_MODULE_TEST_DEPENDS Network Gui)
+
+test_module_includes(
+  Qml QQmlEngine
+  Quick QQuickWindow
+)
-- 
GitLab