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
|
2020-04-29 07:44:46 +00:00
|
|
|
find_package(OpenGL QUIET REQUIRED)
|
2019-12-10 10:10:46 +00:00
|
|
|
|
|
|
|
prusaslicer_add_cmake_project(
|
|
|
|
GLEW
|
2022-01-19 12:24:37 +00:00
|
|
|
URL https://sourceforge.net/projects/glew/files/glew/2.1.0/glew-2.1.0.zip
|
|
|
|
URL_HASH SHA256=2700383d4de2455f06114fbaf872684f15529d4bdc5cdea69b5fb0e9aa7763f1
|
2022-01-19 12:09:31 +00:00
|
|
|
SOURCE_SUBDIR build/cmake
|
|
|
|
CMAKE_ARGS
|
|
|
|
-DBUILD_UTILS=OFF
|
2019-12-10 10:10:46 +00:00
|
|
|
)
|
2019-12-11 11:24:21 +00:00
|
|
|
|
|
|
|
if (MSVC)
|
|
|
|
add_debug_dep(dep_GLEW)
|
|
|
|
endif ()
|