PlayerConfiguration.cmake 677 B

1234567891011121314151617181920
  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})
  15. find_path(MPV_QT_HELPER mpv/qthelper.hpp HINTS ${MPV_INCLUDE_DIR})
  16. if(${MPV_QT_HELPER} STREQUAL "MPV_QT_HELPER-NOTFOUND")
  17. message(FATAL_ERROR "Missing mpv/qthelper.h - maybe your mpv version is to old?")
  18. endif(${MPV_QT_HELPER} STREQUAL "MPV_QT_HELPER-NOTFOUND")