FindX11.cmake 646 B

123456789101112131415161718192021222324252627282930313233
  1. #
  2. # try to find X11 libraries on UNIX systems once done this will define
  3. #
  4. # X11_INCLUDE_PATH = where the X11 include directory can be found
  5. # X11_LIBRARY = the name of the X11 library to link with
  6. #
  7. IF (WIN32)
  8. SET (X11_LIBRARY x11 CACHE STRING "X11 library")
  9. ELSE (WIN32)
  10. FIND_PATH(X11_INCLUDE_PATH X11.h
  11. /usr/include
  12. /usr/local/include
  13. /usr/openwin/share/include
  14. /opt/graphics/OpenGL/include
  15. /usr/X11R6/include
  16. )
  17. MARK_AS_ADVANCED(
  18. X11_INCLUDE_PATH
  19. )
  20. FIND_LIBRARY(X11_LIBRARY libX11.so
  21. /usr/lib
  22. /usr/local/lib
  23. /usr/X11R6/lib
  24. /usr/openwin/lib
  25. )
  26. ENDIF (WIN32)
  27. MARK_AS_ADVANCED(
  28. X11_LIBRARY
  29. )