Commit 88712d97 authored by Alexander Shishkov's avatar Alexander Shishkov

fix CMake changes

parent 396f6bb5
...@@ -241,8 +241,10 @@ if(WITH_AVFOUNDATION) ...@@ -241,8 +241,10 @@ if(WITH_AVFOUNDATION)
endif() endif()
# --- QuickTime --- # --- QuickTime ---
if(WITH_QUICKTIME) if (NOT IOS)
set(HAVE_QUICKTIME YES) if(WITH_QUICKTIME)
elseif(APPLE) set(HAVE_QUICKTIME YES)
set(HAVE_QTKIT YES) elseif(APPLE)
set(HAVE_QTKIT YES)
endif()
endif() endif()
...@@ -210,14 +210,12 @@ if(HAVE_AVFOUNDATION) ...@@ -210,14 +210,12 @@ if(HAVE_AVFOUNDATION)
list(APPEND HIGHGUI_LIBRARIES "-framework AVFoundation" "-framework QuartzCore") list(APPEND HIGHGUI_LIBRARIES "-framework AVFoundation" "-framework QuartzCore")
endif() endif()
if (NOT IOS) if(HAVE_QUICKTIME)
if(HAVE_QUICKTIME) list(APPEND highgui_srcs src/cap_qt.cpp)
list(APPEND highgui_srcs src/cap_qt.cpp) list(APPEND HIGHGUI_LIBRARIES "-framework Carbon" "-framework QuickTime" "-framework CoreFoundation" "-framework QuartzCore")
list(APPEND HIGHGUI_LIBRARIES "-framework Carbon" "-framework QuickTime" "-framework CoreFoundation" "-framework QuartzCore") elseif(HAVE_QTKIT)
elseif(HAVE_QTKIT) list(APPEND highgui_srcs src/cap_qtkit.mm)
list(APPEND highgui_srcs src/cap_qtkit.mm) list(APPEND HIGHGUI_LIBRARIES "-framework QTKit" "-framework QuartzCore" "-framework AppKit")
list(APPEND HIGHGUI_LIBRARIES "-framework QTKit" "-framework QuartzCore" "-framework AppKit")
endif()
endif() endif()
if(IOS) if(IOS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment