add new thirdparty library, minimp4

This commit is contained in:
2022-07-04 17:48:50 +09:00
parent a9763ed617
commit b88b2fe47e
3 changed files with 29 additions and 0 deletions

View File

@@ -120,6 +120,26 @@ target_sources(implot
)
# ---- minimp4 ----
# repository: https://github.com/lieff/minimp4
# license : CC0
FetchContent_Declare(
minimp4
URL "https://github.com/lieff/minimp4/archive/4575afb4f69ace25a1a048e25cc86bf8c8d14f2b.zip"
)
FetchContent_Populate(minimp4)
add_library(minimp4)
target_include_directories(minimp4 PUBLIC SYSTEM ${minimp4_SOURCE_DIR})
target_sources(minimp4
PUBLIC
"${minimp4_SOURCE_DIR}/minimp4.h"
PRIVATE
minimp4.c
)
# ---- stb ----
FetchContent_Declare(
stb

2
thirdparty/minimp4.c vendored Normal file
View File

@@ -0,0 +1,2 @@
#define MINIMP4_IMPLEMENTATION
#include <minimp4.h>