FindXExt.cmake 806B

1234567891011121314151617181920212223242526
  1. # - Find XExt
  2. # Find the XExtension libraries (WARNING: It's geared and tested specifically for the XShape extension though)
  3. #
  4. # This module defines the following variables:
  5. # XEXT_FOUND - 1 if XEXT_INCLUDE_DIR & XEXT_LIBRARY are found, 0 otherwise
  6. # XEXT_INCLUDE_DIR - where to find Xlib.h, etc.
  7. # XEXT_LIBRARY - the X11 library
  8. #
  9. find_path( XEXT_INCLUDE_DIR
  10. NAMES X11/extensions/shape.h
  11. PATH_SUFFIXES X11/extensions
  12. DOC "The XExtension include directory" )
  13. find_library( XEXT_LIBRARY
  14. NAMES Xext
  15. PATHS /usr/lib /lib
  16. DOC "The XExtension library" )
  17. if( XEXT_INCLUDE_DIR AND XEXT_LIBRARY )
  18. set( XEXT_FOUND 1 )
  19. else()
  20. set( XEXT_FOUND 0 )
  21. endif()
  22. mark_as_advanced( XEXT_INCLUDE_DIR XEXT_LIBRARY )