detect_avfoundation.cmake 435 B

12345678910111213141516
  1. if(APPLE)
  2. set(HAVE_AVFOUNDATION TRUE)
  3. if(IOS)
  4. set(libs "-framework AVFoundation" "-framework QuartzCore")
  5. else()
  6. set(libs
  7. "-framework Cocoa"
  8. "-framework Accelerate"
  9. "-framework AVFoundation"
  10. "-framework CoreGraphics"
  11. "-framework CoreMedia"
  12. "-framework CoreVideo"
  13. "-framework QuartzCore")
  14. endif()
  15. ocv_add_external_target(avfoundation "" "${libs}" "HAVE_AVFOUNDATION")
  16. endif()