mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-04 12:40:36 +08:00
21 lines
647 B
CMake
21 lines
647 B
CMake
#/|/ Copyright (c) Prusa Research 2019 - 2022 Tomáš Mészáros @tamasmeszaros, Filip Sykala @Jony01
|
|
#/|/
|
|
#/|/ PrusaSlicer is released under the terms of the AGPLv3 or higher
|
|
#/|/
|
|
# We have to check for OpenGL to compile GLEW
|
|
set(OpenGL_GL_PREFERENCE "LEGACY") # to prevent a nasty warning by cmake
|
|
find_package(OpenGL QUIET REQUIRED)
|
|
|
|
prusaslicer_add_cmake_project(
|
|
GLEW
|
|
URL https://sourceforge.net/projects/glew/files/glew/2.2.0/glew-2.2.0.zip
|
|
URL_HASH SHA256=a9046a913774395a095edcc0b0ac2d81c3aacca61787b39839b941e9be14e0d4
|
|
SOURCE_SUBDIR build/cmake
|
|
CMAKE_ARGS
|
|
-DBUILD_UTILS=OFF
|
|
)
|
|
|
|
if (MSVC)
|
|
add_debug_dep(dep_GLEW)
|
|
endif ()
|