aboutsummaryrefslogtreecommitdiff
path: root/cmake/modules/FindWaylandProtocolsWebOS.cmake
blob: 1358ad7737c5c7d24460ad5f78aa6970333f387d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# FindWaylandProtocolsWebOS
# -------------------------
# Find wayland-protocol-webOS
#
# This will define the following variables::
#
# WAYLANDPROTOCOLSWEBOS_PROTOCOLSDIR -  directory containing the additional webOS Wayland protocols
#                                       from the webos-wayland-extensions package

find_path(WAYLANDPROTOCOLSWEBOS_PROTOCOLSDIR NAMES webos-shell.xml
                                             PATH_SUFFIXES wayland-webos
                                             HINTS ${DEPENDS_PATH}/share
                                             REQUIRED)

include(FindPackageMessage)
find_package_message(WaylandProtocolsWebOS "Found WaylandProtocols-WebOS: ${WAYLANDPROTOCOLSWEBOS_PROTOCOLSDIR}" "[${WAYLANDPROTOCOLSWEBOS_PROTOCOLSDIR}]")

mark_as_advanced(WAYLANDPROTOCOLSWEBOS_PROTOCOLSDIR)