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