Commit 183a6a0e authored by Kevin Funk's avatar Kevin Funk Committed by Frederik Gladhorn
Browse files

CMake: Create CMake files for WaylandClient


Also add unit tests

Change-Id: I66de887607f73b318884e4a35f18510b90cf0315
Task-number: QTBUG-47357
Reviewed-by: default avatarJan Arne Petersen <jan.petersen@kdab.com>
Reviewed-by: default avatarGiulio Camuffo <giulio.camuffo@jollamobile.com>
parent 257519ce
Branches
Tags
No related merge requests found
Showing with 22 additions and 1 deletion
......@@ -16,7 +16,6 @@ load(qt_module)
QMAKE_CXXFLAGS_WARN_ON -= -Wcast-qual
CONFIG -= precompile_header
CONFIG -= create_cmake
CONFIG += link_pkgconfig qpa/genericunixfontdatabase wayland-scanner
!equals(QT_WAYLAND_GL_CONFIG, nogl) {
......
......@@ -13,3 +13,6 @@ include("${_Qt5CTestMacros}")
test_module_includes(
Compositor QWaylandBufferRef
)
# Can't test in `test_module_includes`, WaylandClient has no public headers
expect_pass(test_waylandclient)
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)
#include <private/qwaylandcursor_p.h>
int main()
{
// use symbol
QtWaylandClient::QWaylandCursor cursor(Q_NULLPTR);
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment