PlayerConfiguration.cmake 413 B

123456789101112131415
  1. # We want OpenGL or OpenGLES2
  2. find_package(OpenGL)
  3. if(NOT OPENGL_FOUND)
  4. find_package(GLES2)
  5. if(NOT GLES2_FOUND)
  6. message(FATAL_ERROR "OpenGL or GLES2 is required")
  7. else(NOT GLES2_FOUND)
  8. set(OPENGL_LIBS ${GLES2_LIBRARY})
  9. endif(NOT GLES2_FOUND)
  10. else(NOT OPENGL_FOUND)
  11. set(OPENGL_LIBS ${OPENGL_gl_LIBRARY})
  12. endif(NOT OPENGL_FOUND)
  13. find_package(MPV REQUIRED)
  14. include_directories(${MPV_INCLUDE_DIR})