mirror of
https://github.com/etlegacy/etlegacy-libs.git
synced 2025-02-23 11:51:10 +00:00
added glew to the libs
This commit is contained in:
parent
aebfdc9676
commit
0a8dfdb690
8 changed files with 48338 additions and 1 deletions
|
@ -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
28
glew/CMakeLists.txt
Normal 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
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
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
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
16972
glew/src/glew.c
Normal file
File diff suppressed because it is too large
Load diff
9984
glew/src/glewinfo.c
Normal file
9984
glew/src/glewinfo.c
Normal file
File diff suppressed because it is too large
Load diff
1178
glew/src/visualinfo.c
Normal file
1178
glew/src/visualinfo.c
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue