diff options
author | Giulio Camuffo <giulio.camuffo@jollamobile.com> | 2014-07-07 17:54:04 +0300 |
---|---|---|
committer | Giulio Camuffo <giulio.camuffo@jollamobile.com> | 2014-07-08 12:21:08 +0200 |
commit | e77aa451f1b88761a3ae5b4e464e8d29ee3fc44f (patch) | |
tree | b2121f12a2cb27cbe8b98acd4191d4d2022f8775 /tests | |
parent | 4fdd9380a68fe0f9578ce9e307bef53cd91dc4a3 (diff) |
Add cmake test for QtCompositor and disable cmake files for QtWaylandClient
Change-Id: Id6e2d46b55e521218a3c0f44cf9a4a2be5f0df7f
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/auto.pro | 1 | ||||
-rw-r--r-- | tests/auto/cmake/CMakeLists.txt | 15 | ||||
-rw-r--r-- | tests/auto/cmake/cmake.pro | 6 |
3 files changed, 22 insertions, 0 deletions
diff --git a/tests/auto/auto.pro b/tests/auto/auto.pro index 1d7d930c9..822fdeb88 100644 --- a/tests/auto/auto.pro +++ b/tests/auto/auto.pro @@ -5,4 +5,5 @@ TEMPLATE=subdirs contains(CONFIG, wayland-compositor) { SUBDIRS += compositor SUBDIRS += client + SUBDIRS += cmake } diff --git a/tests/auto/cmake/CMakeLists.txt b/tests/auto/cmake/CMakeLists.txt new file mode 100644 index 000000000..a3c4870d1 --- /dev/null +++ b/tests/auto/cmake/CMakeLists.txt @@ -0,0 +1,15 @@ + +cmake_minimum_required(VERSION 2.8) + +project(qmake_cmake_files) + +enable_testing() + +find_package(Qt5Core REQUIRED) +set(Qt5_MODULE_TEST_DEPENDS Quick) + +include("${_Qt5CTestMacros}") + +test_module_includes( + Compositor QWaylandBufferRef +) diff --git a/tests/auto/cmake/cmake.pro b/tests/auto/cmake/cmake.pro new file mode 100644 index 000000000..5098c2ce4 --- /dev/null +++ b/tests/auto/cmake/cmake.pro @@ -0,0 +1,6 @@ +# Cause make to do nothing. +TEMPLATE = subdirs + +CMAKE_QT_MODULES_UNDER_TEST = waylandclient + +CONFIG += ctest_testcase |