if(HAVE_LIBV4L)
set(highgui_srcs ${highgui_srcs} cvcap_libv4l.cpp)
else()
- set(highgui_srcs ${highgui_srcs} cvcap_v4l.cpp)
+ if(HAVE_CAMV4L OR HAVE_CAMV4L2)
+ set(highgui_srcs ${highgui_srcs} cvcap_v4l.cpp)
+ endif()
endif()
if(JPEG_FOUND)
if(NOT OPENCV_BUILD_3RDPARTY_LIBS)
add_definitions(-DHAVE_IMAGEIO=1)
endif()
- set(highgui_srcs ${highgui_srcs} cvcap_qt.mm)
if(WITH_CARBON)
add_definitions(-DHAVE_CARBON=1)
set(highgui_srcs ${highgui_srcs} window_carbon.cpp)
add_definitions(-DHAVE_COCOA=1)
set(highgui_srcs ${highgui_srcs} window_cocoa.mm)
endif()
+ if(WITH_QUICKTIME)
+ set(highgui_srcs ${highgui_srcs} cvcap_qt.cpp)
+ else()
+ set(highgui_srcs ${highgui_srcs} cvcap_qt.mm)
+ endif()
endif(APPLE)
source_group("Src" FILES ${highgui_srcs} ${highgui_hdrs})
endif()
if(APPLE)
- target_link_libraries(${the_target} "-framework QTKit -lbz2 -framework Cocoa -framework CoreFoundation -framework QuartzCore")
+ target_link_libraries(${the_target} "-lbz2 -framework Cocoa -framework QuickTime -framework CoreFoundation -framework QuartzCore")
if(WITH_CARBON)
- target_link_libraries(${the_target} "-framework Carbon -framework QuickTime")
+ target_link_libraries(${the_target} "-framework Carbon")
+ endif()
+ if(NOT WITH_QUICKTIME)
+ target_link_libraries(${the_target} "-framework QTKit")
endif()
endif()