mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-24 14:55:07 +00:00
Add cmake support for Regal build mode.
This commit is contained in:
parent
8021e609ae
commit
85c4f9f2ee
@ -13,6 +13,7 @@ endif()
|
|||||||
set(CMAKE_DEBUG_POSTFIX d)
|
set(CMAKE_DEBUG_POSTFIX d)
|
||||||
|
|
||||||
option (BUILD_UTILS "utilities" ON)
|
option (BUILD_UTILS "utilities" ON)
|
||||||
|
option (GLEW_REGAL "Regal mode" FALSE)
|
||||||
option (GLEW_OSMESA "OSMesa mode" FALSE)
|
option (GLEW_OSMESA "OSMesa mode" FALSE)
|
||||||
|
|
||||||
set (GLEW_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../..)
|
set (GLEW_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../..)
|
||||||
@ -42,7 +43,19 @@ set (GLEW_LIBRARIES ${OPENGL_LIBRARIES})
|
|||||||
|
|
||||||
add_definitions (-DGLEW_NO_GLU)
|
add_definitions (-DGLEW_NO_GLU)
|
||||||
|
|
||||||
#### OSMesa ####
|
#### Regal mode ####
|
||||||
|
|
||||||
|
if (GLEW_REGAL)
|
||||||
|
if (WIN32)
|
||||||
|
set (REGAL_LIB_NAME regal32)
|
||||||
|
else ()
|
||||||
|
set (REGAL_LIB_NAME Regal)
|
||||||
|
endif ()
|
||||||
|
add_definitions (-DGLEW_REGAL)
|
||||||
|
set (GLEW_LIBRARIES ${REGAL_LIB_NAME})
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
#### OSMesa mode ####
|
||||||
|
|
||||||
if (GLEW_OSMESA)
|
if (GLEW_OSMESA)
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
|
Loading…
Reference in New Issue
Block a user