Created
February 14, 2019 14:36
-
-
Save natanaeljr/ff4efa71ba169e022891a6686ff60eab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.5) | |
include(ExternalProject) | |
######################################################################################### | |
# GLEW | |
######################################################################################### | |
set(GLEW_PREFIX ${CMAKE_BINARY_DIR}/glew) | |
set(GLEW_INCLUDE_DIR ${GLEW_PREFIX}/include CACHE STRING "GLEW Include Directory") | |
set(GLEW_LIBRARY ${GLEW_PREFIX}/lib64/libGLEW.a CACHE STRING "GLEW Static Library") | |
set(GLEW_LIB_DEPENDENCIES CACHE STRING "GLEW Library Dependencies" | |
GL | |
GLU | |
) | |
# Build settings | |
# Download and build | |
ExternalProject_Add(glew | |
URL "https://github.com/nigels-com/glew/releases/download/glew-2.1.0/glew-2.1.0.zip" | |
PREFIX ${GLEW_PREFIX} | |
CONFIGURE_COMMAND "" | |
BUILD_COMMAND make all -j2 | |
BUILD_IN_SOURCE 1 | |
INSTALL_DIR ${GLEW_PREFIX} | |
INSTALL_COMMAND make install GLEW_DEST=${GLEW_PREFIX} | |
) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment