mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-16 21:47:45 -04:00
30 lines
732 B
CMake
30 lines
732 B
CMake
project(obs-ffmpeg)
|
|
|
|
find_package(Libavformat REQUIRED)
|
|
include_directories(${Libavformat_INCLUDE_DIR})
|
|
add_definitions(${Libavformat_DEFINITIONS})
|
|
|
|
find_package(Libswresample REQUIRED)
|
|
include_directories(${Libswresample_INCLUDE_DIR})
|
|
add_definitions(${Libswresample_DEFINITIONS})
|
|
|
|
set(obs-ffmpeg_SOURCES
|
|
obs-ffmpeg.c
|
|
obs-ffmpeg-output.c)
|
|
|
|
set(obs-ffmpeg_HEADERS
|
|
obs-ffmpeg-output.h)
|
|
|
|
add_library(obs-ffmpeg MODULE
|
|
${obs-ffmpeg_SOURCES}
|
|
${obs-ffmpeg_HEADERS})
|
|
target_link_libraries(obs-ffmpeg
|
|
libobs
|
|
${Libavformat_LIBRARIES}
|
|
${Libswresample_LIBRARIES})
|
|
|
|
install_obs_plugin(obs-ffmpeg)
|
|
|
|
obs_fixup_install_target(obs-ffmpeg PATH ${Libavformat_LIBRARIES})
|
|
obs_fixup_install_target(obs-ffmpeg PATH ${Libswresample_LIBRARIES})
|