@ -108,16 +108,12 @@ elseif(HAVE_WIN32UI)
list ( APPEND highgui_srcs src/window_w32.cpp )
elseif ( HAVE_GTK )
list ( APPEND highgui_srcs src/window_gtk.cpp )
elseif ( APPLE )
if ( WITH_CARBON )
add_definitions ( -DHAVE_CARBON=1 )
list ( APPEND highgui_srcs src/window_carbon.cpp )
list ( APPEND HIGHGUI_LIBRARIES "-framework Carbon" "-framework QuickTime" )
elseif ( NOT IOS )
add_definitions ( -DHAVE_COCOA=1 )
list ( APPEND highgui_srcs src/window_cocoa.mm )
list ( APPEND HIGHGUI_LIBRARIES "-framework Cocoa" )
endif ( )
elseif ( HAVE_CARBON )
list ( APPEND highgui_srcs src/window_carbon.cpp )
list ( APPEND HIGHGUI_LIBRARIES "-framework Carbon" "-framework QuickTime" )
elseif ( HAVE_COCOA )
list ( APPEND highgui_srcs src/window_cocoa.mm )
list ( APPEND HIGHGUI_LIBRARIES "-framework Cocoa" )
endif ( )
if ( WIN32 AND NOT ARM )
@ -210,26 +206,21 @@ if(HAVE_GIGE_API)
list ( APPEND highgui_srcs src/cap_giganetix.cpp )
endif ( HAVE_GIGE_API )
if ( WITH_IMAGEIO )
add_definitions ( -DHAVE_IMAGEIO=1 )
if ( IOS )
list ( APPEND HIGHGUI_LIBRARIES "-framework ImageIO" )
endif ( )
endif ( WITH_IMAGEIO )
if ( HAVE_IMAGEIO AND IOS )
list ( APPEND HIGHGUI_LIBRARIES "-framework ImageIO" )
endif ( )
if ( WITH_AVFOUNDATION )
add_definitions ( -DHAVE_AVFOUNDATION=1 )
if ( HAVE_AVFOUNDATION )
list ( APPEND highgui_srcs src/cap_avfoundation.mm )
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 ( 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" "-framework QuartzCore" )
else ( )
list ( APPEND highgui_srcs src/cap_qtkit.mm )
list ( APPEND HIGHGUI_LIBRARIES "-framework QTKit" "-framework QuartzCore" "-framework AppKit" )
endif ( )
list ( APPEND highgui_srcs src/cap_qtkit.mm )
list ( APPEND HIGHGUI_LIBRARIES "-framework QTKit" "-framework QuartzCore" "-framework AppKit" )
endif ( )
if ( IOS )