Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
third-party
glew
Commits
4718d42d
Commit
4718d42d
authored
Oct 10, 2015
by
Nigel Stewart
Browse files
Regal-mode support for cmake build
parent
bf2cd134
Changes
1
Hide whitespace changes
Inline
Side-by-side
build/cmake/CMakeLists.txt
View file @
4718d42d
...
...
@@ -13,6 +13,7 @@ endif()
set
(
CMAKE_DEBUG_POSTFIX d
)
option
(
BUILD_UTILS
"utilities"
ON
)
option
(
GLEW_REGAL
"Regal mode"
FALSE
)
set
(
GLEW_DIR
${
CMAKE_CURRENT_SOURCE_DIR
}
/../..
)
...
...
@@ -41,6 +42,20 @@ set (GLEW_LIBRARIES ${OPENGL_LIBRARIES})
add_definitions
(
-DGLEW_NO_GLU
)
#### 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
()
#### GLEW ####
include_directories
(
${
GLEW_DIR
}
/include
)
add_library
(
glew SHARED
${
GLEW_DIR
}
/src/glew.c
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment