Add CMake unit tests for WebSockets
authorLaszlo Papp <lpapp@kde.org>
Sun, 22 Dec 2013 18:15:01 +0000 (18:15 +0000)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 23 Dec 2013 10:38:16 +0000 (11:38 +0100)
Change-Id: I1e1218d42880191439ed06f82d0053b0d9642b1c
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
tests/auto/cmake/CMakeLists.txt [new file with mode: 0644]
tests/auto/cmake/cmake.pro [new file with mode: 0644]

diff --git a/tests/auto/cmake/CMakeLists.txt b/tests/auto/cmake/CMakeLists.txt
new file mode 100644 (file)
index 0000000..b80f5d9
--- /dev/null
@@ -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(
+    WebSockets QWebSocket
+)
diff --git a/tests/auto/cmake/cmake.pro b/tests/auto/cmake/cmake.pro
new file mode 100644 (file)
index 0000000..76e5c3b
--- /dev/null
@@ -0,0 +1,7 @@
+
+# Cause make to do nothing.
+TEMPLATE = subdirs
+
+CMAKE_QT_MODULES_UNDER_TEST = websockets
+
+CONFIG += ctest_testcase