Warning, /network/kdeconnect-kde/cmake/FindLibFakeKey.cmake is written in an unsupported language. File is not indexed.

0001 #
0002 # - Try to find the fakekey library
0003 # Once done this will define
0004 #
0005 #  LibFakeKey_FOUND - system has LibFakeKey
0006 #  LibFakeKey_INCLUDE_DIRS - the LibFakeKey include directory
0007 #  LibFakeKey_LIBRARIES - The libraries needed to use LibFakeKey
0008 #  LibFakeKey_VERSION - The LibFakeKey version
0009 
0010 # SPDX-FileCopyrightText: 2014 Christophe Giboudeaux <cgiboudeaux@gmx.com>
0011 #
0012 # SPDX-License-Identifier: BSD-3-Clause
0013 
0014 
0015 find_package(PkgConfig QUIET REQUIRED)
0016 pkg_check_modules(PC_LibFakeKey libfakekey)
0017 
0018 find_path(LibFakeKey_INCLUDE_DIRS
0019   NAMES fakekey/fakekey.h
0020   HINTS ${PC_LibFakeKey_LIBRARY_DIRS}
0021 )
0022 
0023 find_library(LibFakeKey_LIBRARIES
0024   NAMES fakekey
0025   HINTS ${PC_LibFakeKey_LIBRARY_DIRS}
0026 )
0027 
0028 set(LibFakeKey_VERSION ${PC_LibFakeKey_VERSION})
0029 
0030 include(FindPackageHandleStandardArgs)
0031 
0032 find_package_handle_standard_args(LibFakeKey
0033     FOUND_VAR LibFakeKey_FOUND
0034     REQUIRED_VARS LibFakeKey_LIBRARIES LibFakeKey_INCLUDE_DIRS
0035     VERSION_VAR LibFakeKey_VERSION
0036 )
0037 
0038 mark_as_advanced(LibFakeKey_LIBRARIES LibFakeKey_INCLUDE_DIRS LibFakeKey_VERSION)