Files
itgmania212121/extern/CMakeProject-ogg.cmake
T

26 lines
668 B
CMake
Raw Normal View History

2015-09-20 09:36:38 -04:00
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})
2015-09-20 09:36:38 -04:00
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")