From decd6c0fabfbe9f6f1a07c10359e398fc260b3f0 Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Sun, 20 May 2012 19:05:36 +0000 Subject: [PATCH] Restored QuartzCore framework for OS X --- modules/highgui/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/highgui/CMakeLists.txt b/modules/highgui/CMakeLists.txt index c6baa05a15..2e886295e0 100644 --- a/modules/highgui/CMakeLists.txt +++ b/modules/highgui/CMakeLists.txt @@ -182,15 +182,15 @@ endif(WITH_IMAGEIO) if(WITH_AVFOUNDATION) add_definitions(-DHAVE_AVFOUNDATION=1) list(APPEND highgui_srcs src/cap_avfoundation.mm) - list(APPEND HIGHGUI_LIBRARIES "-framework AVFoundation") + list(APPEND HIGHGUI_LIBRARIES "-framework AVFoundation" "-framework QuartzCore") elseif(APPLE) add_definitions(-DHAVE_QUICKTIME=1) if(WITH_QUICKTIME) list(APPEND highgui_srcs src/cap_qt.cpp) - list(APPEND HIGHGUI_LIBRARIES "-framework Carbon" "-framework QuickTime" "-framework CoreFoundation") + list(APPEND HIGHGUI_LIBRARIES "-framework Carbon" "-framework QuickTime" "-framework CoreFoundation" "-framework QuartzCore") else() list(APPEND highgui_srcs src/cap_qtkit.mm) - list(APPEND HIGHGUI_LIBRARIES "-framework QTKit") + list(APPEND HIGHGUI_LIBRARIES "-framework QTKit" "-framework QuartzCore") endif() endif()