Full rewrite of all CMakeLists

CMake now works on all platforms
This commit is contained in:
BtbN
2014-01-20 16:58:58 +01:00
parent 8fa309c96e
commit 45ec80fb7d
48 changed files with 2069 additions and 43 deletions

View File

@@ -0,0 +1,26 @@
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)