| 1 |
# - Config file for the DBus1 package |
| 2 |
# It defines the following variables |
| 3 |
# DBus1_FOUND - Flag for indicating that DBus1 package has been found |
| 4 |
# DBus1_DEFINITIONS - compile definitions for DBus1 [1] |
| 5 |
# DBus1_INCLUDE_DIRS - include directories for DBus1 [1] |
| 6 |
# DBus1_LIBRARIES - cmake targets to link against |
| 7 |
|
| 8 |
# [1] This variable is not required if DBus1_LIBRARIES is added |
| 9 |
# to a target with target_link_libraries |
| 10 |
|
| 11 |
# Compute paths |
| 12 |
if(@DBUS_RELOCATABLE@) |
| 13 |
get_filename_component(DBus1_INSTALL_DIR "${CMAKE_CURRENT_LIST_DIR}/../../.." ABSOLUTE) |
| 14 |
else() |
| 15 |
set(DBus1_INSTALL_DIR "@DBUS_PREFIX@") |
| 16 |
endif() |
| 17 |
# Our library dependencies (contains definitions for IMPORTED targets) |
| 18 |
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/DBus1Targets.cmake") |
| 19 |
# do not additional search paths for implicit libraries |
| 20 |
# see https://cmake.org/cmake/help/v3.0/policy/CMP0003.html |
| 21 |
if(COMMAND cmake_policy) |
| 22 |
cmake_policy(SET CMP0003 NEW) |
| 23 |
endif(COMMAND cmake_policy) |
| 24 |
|
| 25 |
if(NOT TARGET dbus-1) |
| 26 |
include("${CMAKE_CURRENT_LIST_DIR}/DBus1Targets.cmake") |
| 27 |
endif() |
| 28 |
|
| 29 |
# for compatibility, get settings from cmake target |
| 30 |
get_target_property(DBus1_DEFINITIONS dbus-1 INTERFACE_COMPILE_DEFINITIONS) |
| 31 |
get_target_property(DBus1_INCLUDE_DIRS dbus-1 INTERFACE_INCLUDE_DIRECTORIES) |
| 32 |
get_target_property(DBus1_LIBRARY dbus-1 IMPORTED_IMPLIB) |
| 33 |
else() |
| 34 |
message(FATAL_ERROR "Incomplete cmake support in DBus1 find_package configuration") |
| 35 |
endif() |