yolobs-studio/deps/media-playback/CMakeLists.txt

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

44 lines
777 B
CMake
Raw Normal View History

2017-06-29 19:01:10 +00:00
project(media-playback)
find_package(FFmpeg REQUIRED
COMPONENTS avcodec avdevice avutil avformat)
include_directories(
${CMAKE_SOURCE_DIR}/libobs
${FFMPEG_INCLUDE_DIRS}
)
set(media-playback_HEADERS
2019-09-22 21:19:10 +00:00
media-playback/closest-format.h
2017-06-29 19:01:10 +00:00
media-playback/decode.h
media-playback/media.h
)
set(media-playback_SOURCES
media-playback/decode.c
media-playback/media.c
)
add_library(media-playback STATIC
${media-playback_HEADERS}
${media-playback_SOURCES}
)
2020-03-25 08:07:22 +00:00
target_compile_options(media-playback
PUBLIC
${ARCH_SIMD_FLAGS})
2017-06-29 19:01:10 +00:00
target_include_directories(media-playback
PUBLIC .
)
2020-03-25 08:07:22 +00:00
2017-06-29 19:01:10 +00:00
if(NOT MSVC)
if(NOT MINGW)
target_compile_options(media-playback PRIVATE -fPIC)
endif()
endif()
target_link_libraries(media-playback
${FFMPEG_LIBRARIES}
)