From 27fa5e24e9872d58be50e176ac4dd8a31f43f06c Mon Sep 17 00:00:00 2001 From: Sebastian Reimers Date: Sun, 13 Oct 2024 07:41:11 +0200 Subject: [PATCH] vmix: fix ffmpeg linking --- modules/vmix/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/vmix/CMakeLists.txt b/modules/vmix/CMakeLists.txt index 14c5d941..2a9b2cc4 100644 --- a/modules/vmix/CMakeLists.txt +++ b/modules/vmix/CMakeLists.txt @@ -6,10 +6,13 @@ include_directories( ../../include ) +find_package(FFMPEG COMPONENTS + avcodec avfilter avformat swscale swresample avdevice avutil) + if(STATIC) add_library(${PROJECT_NAME} OBJECT ${SRCS}) else() add_library(${PROJECT_NAME} MODULE ${SRCS}) endif() -target_link_libraries(${PROJECT_NAME} PRIVATE slmix-lib) +target_link_libraries(${PROJECT_NAME} PRIVATE slmix-lib ${FFMPEG_LIBRARIES})