Warning, /frameworks/extra-cmake-modules/find-modules/FindWaylandProtocols.cmake is written in an unsupported language. File is not indexed.

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