summaryrefslogtreecommitdiff
path: root/cmake/FindLibudev.cmake
blob: 57e34659d1f8783264d61b47bbad96af3fa3bf83 (plain)
1
2
3
4
5
6
7
8
9
10
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause

find_package(PkgConfig QUIET)

pkg_check_modules(Libudev IMPORTED_TARGET "libudev")

if (NOT TARGET PkgConfig::Libudev)
    set(Libudev_FOUND 0)
endif()