yolobs-studio/plugins/obs-ffmpeg/ffmpeg-mux/CMakeLists.txt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
550 B
CMake
Raw Normal View History

2019-07-27 12:47:10 +00:00
project(obs-ffmpeg-mux)
2016-02-23 23:16:51 +00:00
2020-12-22 17:32:50 +00:00
if(DEBUG_FFMPEG_MUX)
add_definitions(-DDEBUG_FFMPEG)
endif()
2016-02-23 23:16:51 +00:00
find_package(FFmpeg REQUIRED
COMPONENTS avcodec avutil avformat)
include_directories(${FFMPEG_INCLUDE_DIRS})
2019-07-27 12:47:10 +00:00
set(obs-ffmpeg-mux_SOURCES
2016-02-23 23:16:51 +00:00
ffmpeg-mux.c)
2019-07-27 12:47:10 +00:00
set(obs-ffmpeg-mux_HEADERS
2016-02-23 23:16:51 +00:00
ffmpeg-mux.h)
2019-07-27 12:47:10 +00:00
add_executable(obs-ffmpeg-mux
${obs-ffmpeg-mux_SOURCES}
${obs-ffmpeg-mux_HEADERS})
2016-02-23 23:16:51 +00:00
2019-07-27 12:47:10 +00:00
target_link_libraries(obs-ffmpeg-mux
2020-12-22 17:32:50 +00:00
libobs
2016-02-23 23:16:51 +00:00
${FFMPEG_LIBRARIES})
2020-10-01 20:15:25 +00:00
set_target_properties(obs-ffmpeg-mux PROPERTIES FOLDER "plugins/obs-ffmpeg")
2019-07-27 12:47:10 +00:00
install_obs_core(obs-ffmpeg-mux)