Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % cmake --help-module FindOpenGL
- cmake version 2.8.1
- FindOpenGL
- Try to find OpenGL
- Once done this will define
- OPENGL_FOUND - system has OpenGL
- OPENGL_XMESA_FOUND - system has XMESA
- OPENGL_GLU_FOUND - system has GLU
- OPENGL_INCLUDE_DIR - the GL include directory
- OPENGL_LIBRARIES - Link these to use OpenGL and GLU
- If you want to use just GL you can use these values
- OPENGL_gl_LIBRARY - Path to OpenGL Library
- OPENGL_glu_LIBRARY - Path to GLU Library
- On OSX default to using the framework version of opengl
- Defined in: /usr/share/cmake/Modules/FindOpenGL.cmake
- find_package(Qt4 REQUIRED)
- set(QT_USE_QTOPENGL TRUE)
- include(${QT_USE_FILE})
- message("Libs: ${QT_LIBRARIES}")
- add_executable(program main.cpp)
- target_link_libraries(program ${QT_LIBRARIES})
Add Comment
Please, Sign In to add comment