1234567891011121314151617181920212223242526
  1. # - Find XRandr
  2. # Find the XRandr libraries
  3. #
  4. # This module defines the following variables:
  5. # XRANDR_FOUND - 1 if XRANDR_INCLUDE_DIR & XRANDR_LIBRARY are found, 0 otherwise
  6. # XRANDR_INCLUDE_DIR - where to find Xlib.h, etc.
  7. # XRANDR_LIBRARY - the X11 library
  8. #
  9. find_path( XRANDR_INCLUDE_DIR
  10. NAMES X11/extensions/Xrandr.h
  11. PATH_SUFFIXES X11/extensions
  12. DOC "The XRandr include directory" )
  13. find_library( XRANDR_LIBRARY
  14. NAMES Xrandr
  15. PATHS /usr/lib /lib
  16. DOC "The XRandr library" )
  17. if( XRANDR_INCLUDE_DIR AND XRANDR_LIBRARY )
  18. set( XRANDR_FOUND 1 )
  19. else()
  20. set( XRANDR_FOUND 0 )
  21. endif()
  22. mark_as_advanced( XRANDR_INCLUDE_DIR XRANDR_LIBRARY )