Files
itgmania212121/extern/CMakeProject-glew.cmake
T
Naftuli Tzvi Kay aa0e8690b7 Compile dependencies statically into the binary.
On Linux when building this under RPM, RPM insisted on linking in
standard system libraries like libpng, libjpeg-turbo, libGLEW,
Lua, etc. This patch causes all dependencies to be statically
compiled into the binary, which is ideal as the alternative is
segfaulting because of incompatible library changes.

StepMania also uses a modified Lua library which exports functions
that don't exist in any standard Lua library, so there's no easy
way around this.
2016-02-12 12:07:38 -08:00

17 lines
356 B
CMake

set(GLEW_SRC "glew-1.5.8/src/glew.c")
source_group("" FILES ${GLEW_SRC})
add_library("glew" STATIC ${GLEW_SRC})
set_property(TARGET "glew" PROPERTY FOLDER "External Libraries")
target_include_directories("glew" PUBLIC "glew-1.5.8/include")
sm_add_compile_definition("glew" GLEW_STATIC)
if(MSVC)
sm_add_compile_definition("glew" _MBCS)
endif(MSVC)