mirror of
https://github.com/lubosz/overte.git
synced 2025-04-16 01:13:40 +02:00
add a definition so that static GLEW works without DLL
This commit is contained in:
parent
386d0b8c41
commit
3eace31dde
1 changed files with 4 additions and 0 deletions
|
@ -230,6 +230,10 @@ else (APPLE)
|
|||
if (WIN32)
|
||||
find_package(GLEW REQUIRED)
|
||||
include_directories(${GLEW_INCLUDE_DIRS})
|
||||
|
||||
# we're using static GLEW, so define GLEW_STATIC
|
||||
add_definitions(-DGLEW_STATIC)
|
||||
|
||||
target_link_libraries(${TARGET_NAME} "${GLEW_LIBRARY}" wsock32.lib opengl32.lib)
|
||||
endif()
|
||||
endif (APPLE)
|
||||
|
|
Loading…
Reference in a new issue