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 /cmake | |
parent | bad0b76e5a7ed73b685848a8fd6a3555b754a81a (diff) | |
download | qtwayland-12058b161e5f0d6f76523dc831acc8bdbc027fec.tar.gz |
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 'cmake')
-rw-r--r-- | cmake/FindWaylandkms.cmake | 7 | ||||
-rw-r--r-- | cmake/FindXComposite.cmake | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/cmake/FindWaylandkms.cmake b/cmake/FindWaylandkms.cmake new file mode 100644 index 00000000..136e70f8 --- /dev/null +++ b/cmake/FindWaylandkms.cmake @@ -0,0 +1,7 @@ +include(FindPkgConfig) + +pkg_check_modules(Waylandkms wayland-kms IMPORTED_TARGET) + +if (NOT TARGET PkgConfig::Waylandkms) + set(Waylandkms_FOUND 0) +endif() diff --git a/cmake/FindXComposite.cmake b/cmake/FindXComposite.cmake new file mode 100644 index 00000000..0be52279 --- /dev/null +++ b/cmake/FindXComposite.cmake @@ -0,0 +1,7 @@ +include(FindPkgConfig) + +pkg_check_modules(XComposite xcomposite IMPORTED_TARGET) + +if (NOT TARGET PkgConfig::XComposite) + set(XComposite_FOUND 0) +endif() |