summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindBlueZ.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/FindBlueZ.cmake b/cmake/FindBlueZ.cmake
new file mode 100644
index 00000000..abebfb93
--- /dev/null
+++ b/cmake/FindBlueZ.cmake
@@ -0,0 +1,7 @@
+include(FindPkgConfig)
+
+pkg_check_modules(BLUEZ bluez IMPORTED_TARGET)
+
+if (NOT TARGET PkgConfig::BLUEZ)
+ set(BLUEZ_FOUND 0)
+endif()