forked from KDE/kdeconnect-kde
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFindLibFakeKey.cmake
38 lines (29 loc) · 1.01 KB
/
FindLibFakeKey.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#
# - Try to find the fakekey library
# Once done this will define
#
# LibFakeKey_FOUND - system has LibFakeKey
# LibFakeKey_INCLUDE_DIRS - the LibFakeKey include directory
# LibFakeKey_LIBRARIES - The libraries needed to use LibFakeKey
# LibFakeKey_VERSION - The LibFakeKey version
# SPDX-FileCopyrightText: 2014 Christophe Giboudeaux <[email protected]>
#
# SPDX-License-Identifier: BSD-3-Clause
find_package(PkgConfig QUIET REQUIRED)
pkg_check_modules(PC_LibFakeKey libfakekey)
find_path(LibFakeKey_INCLUDE_DIRS
NAMES fakekey/fakekey.h
HINTS ${PC_LibFakeKey_LIBRARY_DIRS}
)
find_library(LibFakeKey_LIBRARIES
NAMES fakekey
HINTS ${PC_LibFakeKey_LIBRARY_DIRS}
)
set(LibFakeKey_VERSION ${PC_LibFakeKey_VERSION})
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(LibFakeKey
FOUND_VAR LibFakeKey_FOUND
REQUIRED_VARS LibFakeKey_LIBRARIES LibFakeKey_INCLUDE_DIRS
VERSION_VAR LibFakeKey_VERSION
)
mark_as_advanced(LibFakeKey_LIBRARIES LibFakeKey_INCLUDE_DIRS LibFakeKey_VERSION)