mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2025-04-23 17:12:55 +00:00
Merge https://github.com/nigels-com/glew.git into master HEAD at Fri Dec 23 17:46:58 GMT 2016
This commit is contained in:
commit
f0d8d60cce
@ -54,6 +54,8 @@ Targets: `all, glew.lib (sub-targets: glew.lib.shared, glew.lib.static), glew
|
|||||||
|
|
||||||
Variables: `SYSTEM=linux-clang, GLEW_DEST=/usr/local, STRIP=`
|
Variables: `SYSTEM=linux-clang, GLEW_DEST=/usr/local, STRIP=`
|
||||||
|
|
||||||
|
_Note: may need to make **auto** folder_
|
||||||
|
|
||||||
#### Using cmake
|
#### Using cmake
|
||||||
|
|
||||||
*CMake 2.8.12 or higher is required.*
|
*CMake 2.8.12 or higher is required.*
|
||||||
@ -149,7 +151,7 @@ OpenGL implementation and GLEW support for that. Please include the output of
|
|||||||
|
|
||||||
## Code Generation
|
## Code Generation
|
||||||
|
|
||||||
A Unix or Mac environment is neded for building GLEW from scratch to
|
A Unix or Mac environment is needed for building GLEW from scratch to
|
||||||
include new extensions, or customize the code generation. The extension
|
include new extensions, or customize the code generation. The extension
|
||||||
data is regenerated from the top level source directory with:
|
data is regenerated from the top level source directory with:
|
||||||
|
|
||||||
|
@ -44,8 +44,10 @@ else ()
|
|||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
find_package (OpenGL REQUIRED)
|
find_package (OpenGL REQUIRED)
|
||||||
find_package (X11)
|
#X11 is only required when builing utils/
|
||||||
|
if(BUILD_UTILS)
|
||||||
|
find_package (X11)
|
||||||
|
endif()
|
||||||
set (GLEW_LIBRARIES ${OPENGL_LIBRARIES})
|
set (GLEW_LIBRARIES ${OPENGL_LIBRARIES})
|
||||||
|
|
||||||
add_definitions (-DGLEW_NO_GLU)
|
add_definitions (-DGLEW_NO_GLU)
|
||||||
@ -101,6 +103,7 @@ if (MSVC)
|
|||||||
target_compile_options (glew_s PRIVATE -GS-)
|
target_compile_options (glew_s PRIVATE -GS-)
|
||||||
# remove stdlib dependency
|
# remove stdlib dependency
|
||||||
target_link_libraries (glew LINK_PRIVATE -nodefaultlib -noentry)
|
target_link_libraries (glew LINK_PRIVATE -nodefaultlib -noentry)
|
||||||
|
string(REGEX REPLACE "/RTC(su|[1su])" "" CMAKE_C_FLAGS_DEBUG ${CMAKE_C_FLAGS_DEBUG})
|
||||||
elseif (WIN32 AND ((CMAKE_C_COMPILER_ID MATCHES "GNU") OR (CMAKE_C_COMPILER_ID MATCHES "Clang")))
|
elseif (WIN32 AND ((CMAKE_C_COMPILER_ID MATCHES "GNU") OR (CMAKE_C_COMPILER_ID MATCHES "Clang")))
|
||||||
# remove stdlib dependency on windows with GCC and Clang (for similar reasons
|
# remove stdlib dependency on windows with GCC and Clang (for similar reasons
|
||||||
# as to MSVC - to allow it to be used with any Windows compiler)
|
# as to MSVC - to allow it to be used with any Windows compiler)
|
||||||
|
Loading…
Reference in New Issue
Block a user