2019-03-09 16:46:40 -08:00
|
|
|
project(obs-ffmpeg-mux)
|
2015-05-28 23:10:45 -07:00
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
option(ENABLE_FFMPEG_MUX_DEBUG "Enable FFmpeg-mux debugging" OFF)
|
2020-10-14 18:42:22 -07:00
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
find_package(FFmpeg REQUIRED COMPONENTS avcodec avutil avformat)
|
2015-05-28 23:10:45 -07:00
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
add_executable(obs-ffmpeg-mux)
|
|
|
|
add_executable(OBS::ffmpeg-mux ALIAS obs-ffmpeg-mux)
|
2015-05-28 23:10:45 -07:00
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
target_sources(obs-ffmpeg-mux PRIVATE ffmpeg-mux.c ffmpeg-mux.h)
|
2015-05-28 23:10:45 -07:00
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
target_link_libraries(obs-ffmpeg-mux PRIVATE OBS::libobs FFmpeg::avcodec
|
|
|
|
FFmpeg::avutil FFmpeg::avformat)
|
2021-12-30 00:10:45 +01:00
|
|
|
if(OS_WINDOWS)
|
|
|
|
target_link_libraries(obs-ffmpeg-mux PRIVATE OBS::w32-pthreads)
|
|
|
|
endif()
|
2015-05-28 23:10:45 -07:00
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
if(ENABLE_FFMPEG_MUX_DEBUG)
|
|
|
|
target_compile_definitions(obs-ffmpeg-mux PRIVATE ENABLE_FFMPEG_MUX_DEBUG)
|
|
|
|
endif()
|
2015-05-28 23:10:45 -07:00
|
|
|
|
2020-05-13 06:37:01 -07:00
|
|
|
set_target_properties(obs-ffmpeg-mux PROPERTIES FOLDER "plugins/obs-ffmpeg")
|
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
setup_binary_target(obs-ffmpeg-mux)
|