add new thirdparty library, minimp4

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

View File

@ -1,6 +1,13 @@
blocky
====
## CMake command
When you built openh264 on `/home/user/openh264`:
```
cmake -DCMAKE_CXX_FLAGS=-isystem\ /home/user/openh264/codec/api\ -L/home/user/openh264 ..
```
## ffmpeg useful commands
```

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>