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

0001 # - Find XTEST
0002 # Find the XTEST libraries
0003 #
0004 #  This module defines the following variables:
0005 #     XTEST_FOUND        - true if XTEST_INCLUDE_DIR & XTEST_LIBRARY are found
0006 #     XTEST_LIBRARIES    - Set when XTEST_LIBRARY is found
0007 #     XTEST_INCLUDE_DIRS - Set when XTEST_INCLUDE_DIR is found
0008 #
0009 #     XTEST_INCLUDE_DIR  - where to find XTest.h, etc.
0010 #     XTEST_LIBRARY      - the XTEST library
0011 #
0012 
0013 #=============================================================================
0014 # SPDX-FileCopyrightText: 2011 O.S. Systems Software Ltda.
0015 # SPDX-FileCopyrightText: 2011 Otavio Salvador <otavio@ossystems.com.br>
0016 # SPDX-FileCopyrightText: 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
0017 #
0018 # SPDX-License-Identifier: Apache-2.0
0019 #=============================================================================
0020 
0021 find_path(XTEST_INCLUDE_DIR NAMES X11/extensions/XTest.h
0022           PATH_SUFFIXES X11/extensions
0023           DOC "The XTest include directory"
0024 )
0025 
0026 find_library(XTEST_LIBRARY NAMES Xtst
0027           DOC "The XTest library"
0028 )
0029 
0030 include(FindPackageHandleStandardArgs)
0031 FIND_PACKAGE_HANDLE_STANDARD_ARGS(XTest DEFAULT_MSG XTEST_LIBRARY XTEST_INCLUDE_DIR)
0032 
0033 if(XTEST_FOUND)
0034   set( XTEST_LIBRARIES ${XTEST_LIBRARY} )
0035   set( XTEST_INCLUDE_DIRS ${XTEST_INCLUDE_DIR} )
0036 endif()
0037 
0038 mark_as_advanced(XTEST_INCLUDE_DIR XTEST_LIBRARY)