summaryrefslogtreecommitdiffstats
path: root/cmake/FindDirectFB.cmake
diff options
context:
space:
mode:
authorJean-Michaƫl Celerier <jean-michael.celerier@kdab.com>2019-09-24 11:35:56 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2019-09-30 11:31:54 +0000
commit309f96ccb6a1e3e1c235148e04497c82b3d61390 (patch)
treee996f1c3e6925ec9999d0f1d29887ba3607b4b99 /cmake/FindDirectFB.cmake
parent23f19eb869b2eddf9c0cda76cc006266fe8f0396 (diff)
Add CMake support for directfb plug-in
Change-Id: I126545e1da54018ce081b42a29e62ca30ee04d64 Reviewed-by: Qt CMake Build Bot Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/FindDirectFB.cmake')
-rw-r--r--cmake/FindDirectFB.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/FindDirectFB.cmake b/cmake/FindDirectFB.cmake
new file mode 100644
index 0000000000..4446018587
--- /dev/null
+++ b/cmake/FindDirectFB.cmake
@@ -0,0 +1,7 @@
+find_package(PkgConfig)
+
+pkg_check_modules(DirectFB directfb IMPORTED_TARGET)
+
+if (NOT TARGET PkgConfig::DirectFB)
+ set(DirectFB_FOUND 0)
+endif()