2019-12-10 10:10:46 +00:00
|
|
|
# We have to check for OpenGL to compile GLEW
|
2020-04-28 07:56:54 +00:00
|
|
|
set(OpenGL_GL_PREFERENCE "LEGACY") # to prevent a nasty warning by cmake
|
|
|
|
find_package(OpenGL QUIET)
|
2019-12-10 10:10:46 +00:00
|
|
|
|
|
|
|
prusaslicer_add_cmake_project(
|
|
|
|
GLEW
|
|
|
|
SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/glew
|
|
|
|
)
|
2019-12-11 11:24:21 +00:00
|
|
|
|
|
|
|
if (MSVC)
|
|
|
|
add_debug_dep(dep_GLEW)
|
|
|
|
endif ()
|