Making the cmake configure ffmpeg

This commit is contained in:
Zoe Roux
2020-03-01 03:18:11 +01:00
parent cdc05e3dc7
commit 2c5df13c7d

View File

@@ -27,4 +27,13 @@ if(WIN32)
target_link_libraries(transcoder wsock32 ws2_32)
target_link_libraries(transcoder Secur32 Secur32)
target_link_libraries(transcoder Bcrypt Bcrypt)
endif()
endif()
include(ExternalProject)
ExternalProject_Add(FFMPEG
SOURCE_DIR ${CMAKE_SOURCE_DIR}/ffmpeg
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND ./configure --pkg-config-flags=--static --disable-shared --enable-static --disable-zlib --disable-iconv --disable-asm --disable-ffplay --disable-ffprobe
BUILD_COMMAND make
INSTALL_COMMAND ""
)