add new thirdparty library, minimp4
This commit is contained in:
parent
a9763ed617
commit
b88b2fe47e
@ -1,6 +1,13 @@
|
|||||||
blocky
|
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
|
## ffmpeg useful commands
|
||||||
|
|
||||||
```
|
```
|
||||||
|
20
thirdparty/CMakeLists.txt
vendored
20
thirdparty/CMakeLists.txt
vendored
@ -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 ----
|
# ---- stb ----
|
||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
stb
|
stb
|
||||||
|
2
thirdparty/minimp4.c
vendored
Normal file
2
thirdparty/minimp4.c
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#define MINIMP4_IMPLEMENTATION
|
||||||
|
#include <minimp4.h>
|
Loading…
x
Reference in New Issue
Block a user