summaryrefslogtreecommitdiff
path: root/cmake/DBusConfig.cmake.in
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/DBusConfig.cmake.in')
-rw-r--r--cmake/DBusConfig.cmake.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/cmake/DBusConfig.cmake.in b/cmake/DBusConfig.cmake.in
new file mode 100644
index 00000000..23428db7
--- /dev/null
+++ b/cmake/DBusConfig.cmake.in
@@ -0,0 +1,18 @@
+# - Config file for the FooBar package
+# It defines the following variables
+# DBUS_INCLUDE_DIRS - include directories for FooBar
+# DBUS_LIBRARIES - libraries to link against
+# DBUS_EXECUTABLE - the bar executable
+
+# Compute paths
+get_filename_component(DBUS1_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
+set(DBUS_INCLUDE_DIRS "@CONF_INCLUDE_DIRS@")
+
+# Our library dependencies (contains definitions for IMPORTED targets)
+if(NOT TARGET dbus AND NOT CMAKE_BINARY_DIR)
+ include("${DBUS_CMAKE_DIR}/DBusTargets.cmake")
+endif()
+
+# These are IMPORTED targets created by FooBarTargets.cmake
+set(DBUS_LIBRARIES dbus-1)
+set(DBUS_EXECUTABLE dbus-daemon)