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.2.0/glew-2.2.0.zip
|
|
|
|
URL_HASH SHA256=a9046a913774395a095edcc0b0ac2d81c3aacca61787b39839b941e9be14e0d4
|
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 ()
|