CMakeLists.txt 578 B

12345678910111213141516171819202122232425262728
  1. project(obs-ffmpeg)
  2. if(WIN32)
  3. set(obs-ffmpeg_PLATFORM_DEPS
  4. w32-pthreads)
  5. endif()
  6. find_package(FFMpeg REQUIRED
  7. COMPONENTS avcodec avutil swscale avformat swresample)
  8. include_directories(${FFMPEG_INCLUDE_DIRS})
  9. set(obs-ffmpeg_HEADERS
  10. obs-ffmpeg-formats.h
  11. obs-ffmpeg-compat.h)
  12. set(obs-ffmpeg_SOURCES
  13. obs-ffmpeg.c
  14. obs-ffmpeg-aac.c
  15. obs-ffmpeg-output.c)
  16. add_library(obs-ffmpeg MODULE
  17. ${obs-ffmpeg_HEADERS}
  18. ${obs-ffmpeg_SOURCES})
  19. target_link_libraries(obs-ffmpeg
  20. libobs
  21. ${obs-ffmpeg_PLATFORM_DEPS}
  22. ${FFMPEG_LIBRARIES})
  23. install_obs_plugin_with_data(obs-ffmpeg data)