mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-23 02:38:52 -05:00
35682ec3fa
Related to #854.
22 lines
525 B
CMake
22 lines
525 B
CMake
# Find libdbus
|
|
#
|
|
# DBUS_INCLUDE_DIRS
|
|
# DBUS_LIBRARY
|
|
# DBUS_FOUND
|
|
|
|
find_package(PkgConfig)
|
|
if (PKG_CONFIG_FOUND)
|
|
|
|
pkg_check_modules(PC_DBUS dbus-1 QUIET)
|
|
if (PC_DBUS_FOUND)
|
|
set(DBUS_INCLUDE_DIRS ${PC_DBUS_INCLUDE_DIRS})
|
|
find_library(DBUS_LIBRARY dbus-1 PATHS ${PC_DBUS_LIBRARY_DIRS})
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(DBus DEFAULT_MSG DBUS_LIBRARY DBUS_INCLUDE_DIRS)
|
|
mark_as_advanced(DBUS_INCLUDE_DIRS DBUS_LIBRARY)
|
|
endif()
|
|
|
|
endif()
|
|
|