summaryrefslogtreecommitdiff
path: root/cmake/FindWaylandkms.cmake
blob: 280c0134fa2c1eff14408cf2ea5cda1098f4ebf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause

if (TARGET PkgConfig::Waylandkms)
    set(Waylandkms_FOUND 1)
    return()
endif()

find_package(PkgConfig QUIET)

pkg_check_modules(Waylandkms wayland-kms IMPORTED_TARGET)

if (NOT TARGET PkgConfig::Waylandkms)
    set(Waylandkms_FOUND 0)
endif()