1 |
include(LibFindMacros)
|
2 |
|
3 |
libfind_pkg_check_modules(DBUS_PKGCONFIG dbus-1)
|
4 |
|
5 |
FIND_PATH(DBus_INCLUDE_DIR dbus/dbus.h
|
6 |
PATHS
|
7 |
${DBUS_PKGCONFIG_INCLUDE_DIRS}
|
8 |
/usr/include/dbus-1.0
|
9 |
# PATH_SUFFIXES dbus
|
10 |
)
|
11 |
|
12 |
FIND_PATH(DBus_INCLUDE_DIR_ARCH dbus/dbus-arch-deps.h
|
13 |
PATHS
|
14 |
${DBUS_PKGCONFIG_INCLUDE_DIRS}
|
15 |
/usr/lib/dbus-1.0/include
|
16 |
# PATH_SUFFIXES dbus
|
17 |
)
|
18 |
|
19 |
FIND_LIBRARY(DBus_LIBRARY
|
20 |
NAMES dbus-1
|
21 |
PATHS ${DBUS_PKGCONFIG_LIBRARY_DIRS}
|
22 |
)
|
23 |
|
24 |
set(DBus_PROCESS_INCLUDES DBus_INCLUDE_DIR DBus_INCLUDE_DIR_ARCH)
|
25 |
set(DBus_PROCESS_LIBS DBus_LIBRARY)
|
26 |
libfind_process(DBus)
|