summaryrefslogtreecommitdiffstats
path: root/tests/auto/cmake/test_waylandclient
diff options
context:
space:
mode:
authorKevin Funk <kevin.funk@kdab.com>2015-11-02 10:43:06 +0100
committerFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>2015-11-02 16:27:34 +0000
commit183a6a0effdf1332ec445e5d1626b99d550c79a8 (patch)
tree5415b760dd24ff978c9cd91b3f24c961b05fd4ef /tests/auto/cmake/test_waylandclient
parent257519ce8a6fc225e04313ae27cd63643b75f0fd (diff)
CMake: Create CMake files for WaylandClient
Also add unit tests Change-Id: I66de887607f73b318884e4a35f18510b90cf0315 Task-number: QTBUG-47357 Reviewed-by: Jan Arne Petersen <jan.petersen@kdab.com> Reviewed-by: Giulio Camuffo <giulio.camuffo@jollamobile.com>
Diffstat (limited to 'tests/auto/cmake/test_waylandclient')
-rw-r--r--tests/auto/cmake/test_waylandclient/CMakeLists.txt12
-rw-r--r--tests/auto/cmake/test_waylandclient/main.cpp7
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/cmake/test_waylandclient/CMakeLists.txt b/tests/auto/cmake/test_waylandclient/CMakeLists.txt
new file mode 100644
index 000000000..3788a4927
--- /dev/null
+++ b/tests/auto/cmake/test_waylandclient/CMakeLists.txt
@@ -0,0 +1,12 @@
+project(test_plugins)
+
+cmake_minimum_required(VERSION 2.8)
+cmake_policy(SET CMP0056 NEW)
+
+find_package(Qt5WaylandClient REQUIRED)
+
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Core_EXECUTABLE_COMPILE_FLAGS}")
+
+include_directories(${Qt5WaylandClient_PRIVATE_INCLUDE_DIRS})
+add_executable(test_waylandclient_exe main.cpp)
+target_link_libraries(test_waylandclient_exe Qt5::WaylandClient)
diff --git a/tests/auto/cmake/test_waylandclient/main.cpp b/tests/auto/cmake/test_waylandclient/main.cpp
new file mode 100644
index 000000000..f0ccdef4b
--- /dev/null
+++ b/tests/auto/cmake/test_waylandclient/main.cpp
@@ -0,0 +1,7 @@
+#include <private/qwaylandcursor_p.h>
+
+int main()
+{
+ // use symbol
+ QtWaylandClient::QWaylandCursor cursor(Q_NULLPTR);
+}