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