Warning, /network/telepathy-logger-qt/cmake/modules/FindDBus.cmake is written in an unsupported language. File is not indexed.
0001 # - Try to find the low-level D-Bus library 0002 # Once done this will define 0003 # 0004 # DBUS_FOUND - system has D-Bus 0005 # DBUS_INCLUDE_DIRS - the D-Bus include directories 0006 # DBUS_INCLUDE_DIR - the D-Bus include directory 0007 # DBUS_ARCH_INCLUDE_DIR - the D-Bus architecture-specific include directory 0008 # DBUS_LIBRARIES - the libraries needed to use D-Bus 0009 0010 # Copyright (c) 2012, George Kiagiadakis <kiagiadakis.george@gmail.com> 0011 # Copyright (c) 2008, Kevin Kofler, <kevin.kofler@chello.at> 0012 # modeled after FindLibArt.cmake: 0013 # Copyright (c) 2006, Alexander Neundorf, <neundorf@kde.org> 0014 # 0015 # Redistribution and use is allowed according to the terms of the BSD license. 0016 # For details see the accompanying COPYING-CMAKE-SCRIPTS file. 0017 0018 if (NOT WIN32) 0019 find_package(PkgConfig) 0020 pkg_check_modules(PC_DBUS dbus-1) 0021 endif (NOT WIN32) 0022 0023 find_path(DBUS_INCLUDE_DIR dbus/dbus.h 0024 PATHS ${PC_DBUS_INCLUDE_DIRS} 0025 PATH_SUFFIXES dbus-1.0 0026 ) 0027 0028 find_path(DBUS_ARCH_INCLUDE_DIR dbus/dbus-arch-deps.h 0029 PATHS ${PC_DBUS_INCLUDE_DIRS} 0030 HINTS ${CMAKE_LIBRARY_PATH}/dbus-1.0/include 0031 ${CMAKE_SYSTEM_LIBRARY_PATH}/dbus-1.0/include 0032 ) 0033 0034 find_library(DBUS_LIBRARIES NAMES dbus-1 0035 PATHS ${PC_DBUS_LIBRARY_DIRS} 0036 ) 0037 0038 include(FindPackageHandleStandardArgs) 0039 find_package_handle_standard_args(DBus DBUS_INCLUDE_DIR DBUS_ARCH_INCLUDE_DIR DBUS_LIBRARIES) 0040 0041 set(DBUS_INCLUDE_DIRS ${DBUS_INCLUDE_DIR} ${DBUS_ARCH_INCLUDE_DIR}) 0042 0043 mark_as_advanced(DBUS_INCLUDE_DIR DBUS_ARCH_INCLUDE_DIR DBUS_LIBRARIES)