2 # Once done, this will define
4 # E_DBUS_FOUND - system has E_DBus installed.
5 # E_DBUS_INCLUDE_DIRS - directories which contain the E_DBus headers.
6 # E_DBUS_LIBRARIES - libraries required to link against E_DBus.
8 # Optionally, the COMPONENTS keyword can be passed to FIND_PACKAGE()
9 # and additional E_DBus libraries can be looked for. Currently, the
10 # following libraries can be searched, and they define the following
13 # EUKIT - E_DBUS_EUKIT_INCLUDE_DIRS and E_DBUS_EUKIT_LIBRARIES
15 # Copyright (C) 2012 Intel Corporation. All rights reserved.
17 # Redistribution and use in source and binary forms, with or without
18 # modification, are permitted provided that the following conditions
20 # 1. Redistributions of source code must retain the above copyright
21 # notice, this list of conditions and the following disclaimer.
22 # 2. Redistributions in binary form must reproduce the above copyright
23 # notice, this list of conditions and the following disclaimer in the
24 # documentation and/or other materials provided with the distribution.
26 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND ITS CONTRIBUTORS ``AS
27 # IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
28 # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29 # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR ITS
30 # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
31 # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
32 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
33 # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
34 # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
35 # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
36 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40 FIND_EFL_LIBRARY(E_DBUS
42 HEADER_PREFIXES e_dbus-1
47 FIND_EFL_LIBRARY(E_DBUS_EUKIT
49 HEADER_PREFIXES e_dbus-1
53 FOREACH(_component ${E_DBus_FIND_COMPONENTS})
54 SET(_e_dbus_component "E_DBUS_${_component}")
55 STRING(TOUPPER ${_e_dbus_component} _UPPER_NAME)
57 LIST(APPEND _E_DBUS_REQUIRED_COMPONENT_VARS ${_UPPER_NAME}_INCLUDE_DIRS ${_UPPER_NAME}_LIBRARIES)
60 INCLUDE(FindPackageHandleStandardArgs)
61 FIND_PACKAGE_HANDLE_STANDARD_ARGS(E_DBus REQUIRED_VARS E_DBUS_INCLUDE_DIRS E_DBUS_LIBRARIES ${_E_DBUS_REQUIRED_COMPONENT_VARS}
62 VERSION_VAR E_DBUS_VERSION)