GLEW.cmake 289 B

123456789101112
  1. # We have to check for OpenGL to compile GLEW
  2. set(OpenGL_GL_PREFERENCE "LEGACY") # to prevent a nasty warning by cmake
  3. find_package(OpenGL QUIET REQUIRED)
  4. prusaslicer_add_cmake_project(
  5. GLEW
  6. SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/glew
  7. )
  8. if (MSVC)
  9. add_debug_dep(dep_GLEW)
  10. endif ()