Warning, /libraries/plasma-wayland-protocols/cmake/Modules/FindWaylandProtocols.cmake is written in an unsupported language. File is not indexed.

0001 #.rst:
0002 # FindWaylandProtocols
0003 # -------
0004 #
0005 # Try to find wayland-protocols on a Unix system.
0006 #
0007 # This will define the following variables:
0008 #
0009 # ``WaylandProtocols_FOUND``
0010 #     True if (the requested version of) wayland-protocols is available
0011 # ``WaylandProtocols_VERSION``
0012 #     The version of wayland-protocols
0013 # ``WaylandProtocols_DATADIR``
0014 #     The wayland protocols data directory
0015 
0016 #=============================================================================
0017 # SPDX-FileCopyrightText: 2019 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
0018 #
0019 # SPDX-License-Identifier: BSD-3-Clause
0020 #=============================================================================
0021 
0022 find_package(PkgConfig)
0023 pkg_check_modules(PKG_wayland_protocols QUIET wayland-protocols)
0024 
0025 set(WaylandProtocols_VERSION ${PKG_wayland_protocols_VERSION})
0026 pkg_get_variable(WaylandProtocols_DATADIR wayland-protocols pkgdatadir)
0027 
0028 include(FindPackageHandleStandardArgs)
0029 find_package_handle_standard_args(WaylandProtocols
0030     FOUND_VAR WaylandProtocols_FOUND
0031     REQUIRED_VARS WaylandProtocols_DATADIR
0032     VERSION_VAR WaylandProtocols_VERSION
0033 )
0034 
0035 include(FeatureSummary)
0036 set_package_properties(WaylandProtocols PROPERTIES
0037     DESCRIPTION "Specifications of extended Wayland protocols"
0038     URL "https://wayland.freedesktop.org/"
0039 )