aa0e8690b7
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.
17 lines
356 B
CMake
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)
|
|
|