Warning, /graphics/kolor-manager/cmake/modules/FindXRandR.cmake is written in an unsupported language. File is not indexed.
0001 # - Find XRANDR 0002 # Find the XRANDR libraries 0003 # 0004 # This module defines the following variables: 0005 # XRANDR_FOUND - true if XRANDR_INCLUDE_DIR & XRANDR_LIBRARY are found 0006 # XRANDR_LIBRARIES - Set when XRANDR_LIBRARY is found 0007 # XRANDR_INCLUDE_DIRS - Set when XRANDR_INCLUDE_DIR is found 0008 # 0009 # XRANDR_INCLUDE_DIR - where to find Xrandr.h, etc. 0010 # XRANDR_LIBRARY - the XRANDR library 0011 # 0012 0013 #============================================================================= 0014 # Copyright 2012 Alam Arias <Alam.GBC@gmail.com> 0015 # 0016 # Licensed under the Apache License, Version 2.0 (the "License"); 0017 # you may not use this file except in compliance with the License. 0018 # You may obtain a copy of the License at 0019 # 0020 # http://www.apache.org/licenses/LICENSE-2.0 0021 # 0022 # Unless required by applicable law or agreed to in writing, software 0023 # distributed under the License is distributed on an "AS IS" BASIS, 0024 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 0025 # See the License for the specific language governing permissions and 0026 # limitations under the License. 0027 #============================================================================= 0028 0029 find_path(XRANDR_INCLUDE_DIR NAMES X11/extensions/Xrandr.h 0030 PATH_SUFFIXES X11/extensions 0031 DOC "The XRANDR include directory" 0032 ) 0033 0034 find_library(XRANDR_LIBRARY NAMES Xrandr 0035 DOC "The XRANDR library" 0036 ) 0037 0038 include(FindPackageHandleStandardArgs) 0039 FIND_PACKAGE_HANDLE_STANDARD_ARGS(XRANDR DEFAULT_MSG XRANDR_LIBRARY XRANDR_INCLUDE_DIR) 0040 0041 if(XRANDR_FOUND) 0042 set( XRANDR_LIBRARIES ${XRANDR_LIBRARY} ) 0043 set( XRANDR_INCLUDE_DIRS ${XRANDR_INCLUDE_DIR} ) 0044 endif() 0045 0046 mark_as_advanced(XRANDR_INCLUDE_DIR XRANDR_LIBRARY) 0047