FindX11.cmake 623 B

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