fixed problems with building iOS version
authorAlexander Shishkov <alexander.shishkov@itseez.com>
Fri, 23 Aug 2013 09:41:19 +0000 (13:41 +0400)
committerAlexander Shishkov <alexander.shishkov@itseez.com>
Fri, 23 Aug 2013 09:41:19 +0000 (13:41 +0400)
cmake/OpenCVFindLibsGrfmt.cmake
modules/highgui/CMakeLists.txt

index 9381350..f27a302 100644 (file)
@@ -114,7 +114,7 @@ if(WITH_JASPER)
 endif()
 
 # --- libpng (optional, should be searched after zlib) ---
-if(WITH_PNG AND NOT IOS)
+if(WITH_PNG)
   if(BUILD_PNG)
     ocv_clear_vars(PNG_FOUND)
   else()
index b49d93a..d5545a7 100644 (file)
@@ -210,12 +210,14 @@ if(HAVE_AVFOUNDATION)
   list(APPEND HIGHGUI_LIBRARIES "-framework AVFoundation" "-framework QuartzCore")
 endif()
 
-if(HAVE_QUICKTIME)
-  list(APPEND highgui_srcs src/cap_qt.cpp)
-  list(APPEND HIGHGUI_LIBRARIES "-framework Carbon" "-framework QuickTime" "-framework CoreFoundation" "-framework QuartzCore")
-elseif(HAVE_QTKIT)
-  list(APPEND highgui_srcs src/cap_qtkit.mm)
-  list(APPEND HIGHGUI_LIBRARIES "-framework QTKit" "-framework QuartzCore" "-framework AppKit")
+if (NOT IOS)
+  if(HAVE_QUICKTIME)
+    list(APPEND highgui_srcs src/cap_qt.cpp)
+    list(APPEND HIGHGUI_LIBRARIES "-framework Carbon" "-framework QuickTime" "-framework CoreFoundation" "-framework QuartzCore")
+  elseif(HAVE_QTKIT)
+    list(APPEND highgui_srcs src/cap_qtkit.mm)
+    list(APPEND HIGHGUI_LIBRARIES "-framework QTKit" "-framework QuartzCore" "-framework AppKit")
+  endif()
 endif()
 
 if(IOS)