mirror of
https://github.com/love2d/megasource.git
synced 2026-08-12 08:30:59 +02:00
Add CMakeLists.txt for libogg.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user