mirror of
https://github.com/love2d/megasource.git
synced 2026-08-12 08:30:59 +02:00
28 lines
631 B
CMake
28 lines
631 B
CMake
cmake_minimum_required(VERSION 3.6)
|
|
|
|
project(ogg)
|
|
|
|
option(OGG_BUILD_SHARED "Build shared library" OFF)
|
|
option(OGG_BUILD_STATIC "Build static library" ON)
|
|
|
|
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)
|
|
if(ANDROID)
|
|
target_include_directories(ogg-static PUBLIC android)
|
|
endif()
|
|
endif()
|
|
|
|
if(OGG_BUILD_SHARED)
|
|
add_library(ogg SHARED ${OGG_SRC} win32/ogg.def)
|
|
target_include_directories(ogg PUBLIC include)
|
|
if(ANDROID)
|
|
target_include_directories(ogg PUBLIC android)
|
|
endif()
|
|
endif()
|