]> rtime.felk.cvut.cz Git - opencv.git/blobdiff - opencv/src/highgui/CMakeLists.txt
renamed tbb's proxy split struct to Split; cleaned up find_obj_ferns.cpp; restored...
[opencv.git] / opencv / src / highgui / CMakeLists.txt
index f4b64c02b014647670b8f656f04fa2ee93c03a73..19b93e40c790e758b504709a7ea48decd7829691 100644 (file)
@@ -118,7 +118,9 @@ if(UNIX)
        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)
@@ -149,7 +151,6 @@ if(APPLE)
     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)
@@ -157,6 +158,11 @@ if(APPLE)
         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})
@@ -265,9 +271,12 @@ if(WIN32)
 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()