Guest User

Untitled

a guest
Jul 23rd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. % cmake --help-module FindOpenGL
  2. cmake version 2.8.1
  3. FindOpenGL
  4. Try to find OpenGL
  5.  
  6. Once done this will define
  7.  
  8.  
  9. OPENGL_FOUND - system has OpenGL
  10. OPENGL_XMESA_FOUND - system has XMESA
  11. OPENGL_GLU_FOUND - system has GLU
  12. OPENGL_INCLUDE_DIR - the GL include directory
  13. OPENGL_LIBRARIES - Link these to use OpenGL and GLU
  14.  
  15.  
  16. If you want to use just GL you can use these values
  17.  
  18. OPENGL_gl_LIBRARY - Path to OpenGL Library
  19. OPENGL_glu_LIBRARY - Path to GLU Library
  20.  
  21.  
  22. On OSX default to using the framework version of opengl
  23.  
  24. Defined in: /usr/share/cmake/Modules/FindOpenGL.cmake
  25.  
  26. find_package(Qt4 REQUIRED)
  27. set(QT_USE_QTOPENGL TRUE)
  28. include(${QT_USE_FILE})
  29. message("Libs: ${QT_LIBRARIES}")
  30. add_executable(program main.cpp)
  31. target_link_libraries(program ${QT_LIBRARIES})
Add Comment
Please, Sign In to add comment