aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2013-10-01 16:42:59 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-02 13:32:06 +0200
commit98ebfd8d34073679247e6ad77d8f34a0cbfc3124 (patch)
treec2a08303ebc8609bf906490c3c0ef6713d2b3afb /tests
parent20034e6c66c1c983c371b44bd035bd9b4dd7ade9 (diff)
Test the generated cmake files.
Change-Id: I4eafa7366a36d8444392b476d6262e54d67893bf Reviewed-by: Christian Stromme <christian.stromme@digia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/auto.pro1
-rw-r--r--tests/auto/cmake/CMakeLists.txt14
-rw-r--r--tests/auto/cmake/cmake.pro7
3 files changed, 22 insertions, 0 deletions
diff --git a/tests/auto/auto.pro b/tests/auto/auto.pro
index a758912..edcc5f0 100644
--- a/tests/auto/auto.pro
+++ b/tests/auto/auto.pro
@@ -1,4 +1,5 @@
TEMPLATE = subdirs
SUBDIRS += \
+ cmake \
qjnienvironment \
qjniobject
diff --git a/tests/auto/cmake/CMakeLists.txt b/tests/auto/cmake/CMakeLists.txt
new file mode 100644
index 0000000..7a81196
--- /dev/null
+++ b/tests/auto/cmake/CMakeLists.txt
@@ -0,0 +1,14 @@
+
+cmake_minimum_required(VERSION 2.8)
+
+project(qmake_cmake_files)
+
+enable_testing()
+
+find_package(Qt5Core REQUIRED)
+
+include("${_Qt5CTestMacros}")
+
+test_module_includes(
+ AndroidExtras QJNIObject
+)
diff --git a/tests/auto/cmake/cmake.pro b/tests/auto/cmake/cmake.pro
new file mode 100644
index 0000000..be97e6a
--- /dev/null
+++ b/tests/auto/cmake/cmake.pro
@@ -0,0 +1,7 @@
+
+# Cause make to do nothing.
+TEMPLATE = subdirs
+
+CMAKE_QT_MODULES_UNDER_TEST = androidextras
+
+CONFIG += ctest_testcase