Skip to content

Commit

Permalink
vmix: fix ffmpeg linking
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Oct 13, 2024
1 parent a818fc8 commit 27fa5e2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/vmix/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})

0 comments on commit 27fa5e2

Please sign in to comment.