added glew to the libs

This commit is contained in:
Jacker 2013-05-14 23:56:06 +03:00
parent aebfdc9676
commit 0a8dfdb690
8 changed files with 48338 additions and 1 deletions

View file

@ -68,7 +68,7 @@ if(WIN32)
DEPENDS ${CMAKE_SOURCE_DIR}/libs/ogg-windows/libvorbisfile_static.lib DEPENDS ${CMAKE_SOURCE_DIR}/libs/ogg-windows/libvorbisfile_static.lib
) )
endif(BUNDLED_OGG_VORBIS) endif(BUNDLED_OGG_VORBIS)
elseif(UNIX) elseif(UNIX)
if(CROSS_COMPILE32) if(CROSS_COMPILE32)
@ -204,3 +204,12 @@ elseif(UNIX)
add_dependencies(bundled_ogg_vorbis bundled_ogg) add_dependencies(bundled_ogg_vorbis bundled_ogg)
endif(BUNDLED_OGG_VORBIS) endif(BUNDLED_OGG_VORBIS)
endif() endif()
#-----------------------------------------------------------------
# Build bundled GLEW library
#-----------------------------------------------------------------
if(BUNDLED_GLEW)
include(${CMAKE_SOURCE_DIR}/libs/glew/CMakeLists.txt)
set(BUNDLED_GLEW_LIBRARIES glew PARENT_SCOPE)
set(BUNDLED_GLEW_INCLUDE_DIR "${CMAKE_SOURCE_DIR}/libs/glew/include" PARENT_SCOPE)
endif(BUNDLED_GLEW)

28
glew/CMakeLists.txt Normal file
View file

@ -0,0 +1,28 @@
#Build the OpenGL extension wrangler
cmake_minimum_required(VERSION 2.8)
#project(glew)
if(MINGW OR UNIX)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-attributes")
endif()
set(GLEW_SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR})
include_directories( ${GLEW_SOURCE_DIR}/include)
source_group(API FILES ${API})
FILE(GLOB GLEW_FILES
${GLEW_SOURCE_DIR}/include/GL/*.h
${GLEW_SOURCE_DIR}/src/glew.c
)
add_library(glew STATIC ${GLEW_FILES})
set_target_properties(glew PROPERTIES
LINKER_LANGUAGE C
COMPILE_DEFINITIONS "GLEW_STATIC"
ARCHIVE_OUTPUT_DIRECTORY "${GLEW_SOURCE_DIR}/lib"
)
install(TARGETS glew
LIBRARY DESTINATION "${GLEW_SOURCE_DIR}/lib/"
ARCHIVE DESTINATION "${GLEW_SOURCE_DIR}/lib/"
)

17132
glew/include/GL/glew.h Normal file

File diff suppressed because it is too large Load diff

1637
glew/include/GL/glxew.h Normal file

File diff suppressed because it is too large Load diff

1397
glew/include/GL/wglew.h Normal file

File diff suppressed because it is too large Load diff

16972
glew/src/glew.c Normal file

File diff suppressed because it is too large Load diff

9984
glew/src/glewinfo.c Normal file

File diff suppressed because it is too large Load diff

1178
glew/src/visualinfo.c Normal file

File diff suppressed because it is too large Load diff