mirror of
https://github.com/love2d/megasource.git
synced 2026-08-17 11:11:35 +02:00
22 lines
479 B
CMake
22 lines
479 B
CMake
cmake_minimum_required(VERSION 2.8)
|
|
|
|
project(ogg)
|
|
|
|
OPTION(OGG_BUILD_SHARED "Build shared library" TRUE)
|
|
OPTION(OGG_BUILD_STATIC "Build static library" TRUE)
|
|
|
|
set(OGG_SRC
|
|
src/bitwise.c
|
|
src/framing.c
|
|
)
|
|
|
|
if(OGG_BUILD_STATIC)
|
|
add_library(ogg-static STATIC ${OGG_SRC})
|
|
target_include_directories(ogg-static PUBLIC include)
|
|
endif()
|
|
|
|
if(OGG_BUILD_SHARED)
|
|
add_library(ogg SHARED ${OGG_SRC} win32/ogg.def)
|
|
target_include_directories(ogg PUBLIC include)
|
|
endif()
|