diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2019-09-18 17:14:44 +0200 |
---|---|---|
committer | Johan Helsing <johan.helsing@qt.io> | 2019-11-26 11:29:29 +0000 |
commit | 12058b161e5f0d6f76523dc831acc8bdbc027fec (patch) | |
tree | ee6e6bf1c2730671544ca799b7ad414abcf17646 /tests/auto/client/seatv4 | |
parent | bad0b76e5a7ed73b685848a8fd6a3555b754a81a (diff) |
Initial CMake port
The client, compositor, tests, plugins and examples now build.
There are still a few minor issues:
- The protocol source generation is a bit hacky.
- The tests for checking if building CMake projects don't work anymore as they
have Qt 5 specific code. They have just been commented out for now.
Fixes: QTBUG-78177
Change-Id: Ie17cb05f0cdbd5b098970ce765adaeccf61a8fde
Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@liri.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Qt CMake Build Bot
Diffstat (limited to 'tests/auto/client/seatv4')
-rw-r--r-- | tests/auto/client/seatv4/.prev_CMakeLists.txt | 42 | ||||
-rw-r--r-- | tests/auto/client/seatv4/CMakeLists.txt | 43 |
2 files changed, 85 insertions, 0 deletions
diff --git a/tests/auto/client/seatv4/.prev_CMakeLists.txt b/tests/auto/client/seatv4/.prev_CMakeLists.txt new file mode 100644 index 000000000..ab7eb380f --- /dev/null +++ b/tests/auto/client/seatv4/.prev_CMakeLists.txt @@ -0,0 +1,42 @@ +# Generated from seatv4.pro. + +##################################################################### +## tst_seatv4 Test: +##################################################################### + +qt_add_test(tst_seatv4 + SOURCES + ../shared/corecompositor.cpp ../shared/corecompositor.h + ../shared/coreprotocol.cpp ../shared/coreprotocol.h + ../shared/datadevice.cpp ../shared/datadevice.h + ../shared/mockcompositor.cpp ../shared/mockcompositor.h + ../shared/textinput.cpp ../shared/textinput.h + ../shared/xdgshell.cpp ../shared/xdgshell.h + tst_seatv4.cpp + INCLUDE_DIRECTORIES + ../shared + LIBRARIES + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::WaylandClient + Wayland::Server +) + +qt6_generate_wayland_protocol_server_sources(tst_seatv4 + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/text-input-unstable-v2.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/wayland.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/xdg-shell.xml +) + +## Scopes: +##################################################################### + +qt_extend_target(tst_seatv4 CONDITION QT_FEATURE_cursor + LIBRARIES + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui + Wayland::Cursor +) diff --git a/tests/auto/client/seatv4/CMakeLists.txt b/tests/auto/client/seatv4/CMakeLists.txt new file mode 100644 index 000000000..bd14a6a8b --- /dev/null +++ b/tests/auto/client/seatv4/CMakeLists.txt @@ -0,0 +1,43 @@ +# Generated from seatv4.pro. + +##################################################################### +## tst_seatv4 Test: +##################################################################### + +qt_add_test(tst_seatv4 + SOURCES + ../shared/corecompositor.cpp ../shared/corecompositor.h + ../shared/coreprotocol.cpp ../shared/coreprotocol.h + ../shared/datadevice.cpp ../shared/datadevice.h + ../shared/mockcompositor.cpp ../shared/mockcompositor.h + ../shared/textinput.cpp ../shared/textinput.h + ../shared/xdgshell.cpp ../shared/xdgshell.h + tst_seatv4.cpp + INCLUDE_DIRECTORIES + ../shared + LIBRARIES + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::WaylandClient + Wayland::Server + Threads::Threads # special case +) + +qt6_generate_wayland_protocol_server_sources(tst_seatv4 + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/text-input-unstable-v2.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/wayland.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/xdg-shell.xml +) + +## Scopes: +##################################################################### + +qt_extend_target(tst_seatv4 CONDITION QT_FEATURE_cursor + LIBRARIES + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui + Wayland::Cursor +) |