CMakeLists.txt 623 B

1234567891011121314151617181920212223242526272829303132
  1. project(mac-vth264)
  2. find_library(AVFOUNDATION AVFoundation)
  3. find_library(COCOA Cocoa)
  4. find_library(COREFOUNDATION CoreFoundation)
  5. find_library(COREVIDEO CoreVideo)
  6. find_library(VIDEOTOOLBOX VideoToolbox)
  7. find_library(COREMEDIA CoreMedia)
  8. include_directories(${AVFOUNDATION}
  9. ${COCOA}
  10. ${COREFOUNDATION}
  11. ${COREVIDEO}
  12. ${VIDEOTOOLBOX}
  13. ${COREMEDIA})
  14. set(mac-vth264_SOURCES
  15. encoder.c)
  16. add_library(mac-vth264 MODULE
  17. ${mac-vth264_SOURCES})
  18. target_link_libraries(mac-vth264
  19. libobs
  20. ${AVFOUNDATION}
  21. ${COCOA}
  22. ${COREFOUNDATION}
  23. ${COREVIDEO}
  24. ${VIDEOTOOLBOX}
  25. ${COREMEDIA})
  26. install_obs_plugin_with_data(mac-vth264 data)