Files
itgmania212121/extern/CMakeProject-ogg.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

26 lines
668 B
CMake

set(OGG_DIR "${SM_EXTERN_DIR}/newogg")
list(APPEND OGG_SRC
"${OGG_DIR}/src/bitwise.c"
"${OGG_DIR}/src/framing.c"
)
list(APPEND OGG_HPP
"${OGG_DIR}/include/ogg/config_types.h"
"${OGG_DIR}/include/ogg/ogg.h"
"${OGG_DIR}/include/ogg/os_types.h"
)
source_group("Source Files" FILES ${OGG_SRC})
source_group("Header Files" FILES ${OGG_HPP})
add_library("ogg" STATIC ${OGG_SRC} ${OGG_HPP} ${OGG_DAT})
set_property(TARGET "ogg" PROPERTY FOLDER "External Libraries")
disable_project_warnings("ogg")
target_include_directories("ogg" PUBLIC "${OGG_DIR}/include")
configure_file("${SM_EXTERN_DIR}/config.ogg.types.in.h" "${OGG_DIR}/include/ogg/config_types.h")