2012-05-25 21:12:02 +08:00
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# Detect 3rd-party video IO libraries
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
|
2013-03-27 23:03:51 +08:00
|
|
|
ocv_clear_vars(HAVE_VFW)
|
2013-08-22 19:46:13 +08:00
|
|
|
if(WITH_VFW)
|
|
|
|
try_compile(HAVE_VFW
|
|
|
|
"${OpenCV_BINARY_DIR}"
|
2013-03-27 23:03:51 +08:00
|
|
|
"${OpenCV_SOURCE_DIR}/cmake/checks/vfwtest.cpp"
|
2013-08-22 19:46:13 +08:00
|
|
|
CMAKE_FLAGS "-DLINK_LIBRARIES:STRING=vfw32")
|
|
|
|
endif(WITH_VFW)
|
2013-03-27 23:03:51 +08:00
|
|
|
|
2012-05-25 21:12:02 +08:00
|
|
|
# --- GStreamer ---
|
|
|
|
ocv_clear_vars(HAVE_GSTREAMER)
|
2015-08-17 02:01:22 +08:00
|
|
|
# try to find gstreamer 1.x first if 0.10 was not requested
|
2013-12-06 17:20:29 +08:00
|
|
|
if(WITH_GSTREAMER AND NOT WITH_GSTREAMER_0_10)
|
2015-12-09 22:08:19 +08:00
|
|
|
if(WIN32)
|
|
|
|
SET(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_CURRENT_LIST_DIR}")
|
|
|
|
FIND_PACKAGE(GstreamerWindows)
|
|
|
|
IF(GSTREAMER_gstbase_LIBRARY AND GSTREAMER_gstvideo_LIBRARY AND GSTREAMER_gstapp_LIBRARY AND GSTREAMER_gstpbutils_LIBRARY AND GSTREAMER_gstriff_LIBRARY)
|
|
|
|
set(HAVE_GSTREAMER TRUE)
|
|
|
|
set(GSTREAMER_BASE_VERSION 1.0)
|
|
|
|
set(GSTREAMER_VIDEO_VERSION 1.0)
|
|
|
|
set(GSTREAMER_APP_VERSION 1.0)
|
|
|
|
set(GSTREAMER_RIFF_VERSION 1.0)
|
|
|
|
set(GSTREAMER_PBUTILS_VERSION 1.0)
|
|
|
|
ENDIF(GSTREAMER_gstbase_LIBRARY AND GSTREAMER_gstvideo_LIBRARY AND GSTREAMER_gstapp_LIBRARY AND GSTREAMER_gstpbutils_LIBRARY AND GSTREAMER_gstriff_LIBRARY)
|
2013-04-08 02:45:38 +08:00
|
|
|
|
2015-12-09 22:08:19 +08:00
|
|
|
else(WIN32)
|
2017-06-30 23:21:43 +08:00
|
|
|
CHECK_MODULE(gstreamer-base-1.0 HAVE_GSTREAMER_BASE VIDEOIO)
|
|
|
|
CHECK_MODULE(gstreamer-video-1.0 HAVE_GSTREAMER_VIDEO VIDEOIO)
|
|
|
|
CHECK_MODULE(gstreamer-app-1.0 HAVE_GSTREAMER_APP VIDEOIO)
|
|
|
|
CHECK_MODULE(gstreamer-riff-1.0 HAVE_GSTREAMER_RIFF VIDEOIO)
|
|
|
|
CHECK_MODULE(gstreamer-pbutils-1.0 HAVE_GSTREAMER_PBUTILS VIDEOIO)
|
2015-12-09 22:08:19 +08:00
|
|
|
|
|
|
|
if(HAVE_GSTREAMER_BASE AND HAVE_GSTREAMER_VIDEO AND HAVE_GSTREAMER_APP AND HAVE_GSTREAMER_RIFF AND HAVE_GSTREAMER_PBUTILS)
|
2013-03-21 17:17:34 +08:00
|
|
|
set(HAVE_GSTREAMER TRUE)
|
|
|
|
set(GSTREAMER_BASE_VERSION ${ALIASOF_gstreamer-base-1.0_VERSION})
|
|
|
|
set(GSTREAMER_VIDEO_VERSION ${ALIASOF_gstreamer-video-1.0_VERSION})
|
|
|
|
set(GSTREAMER_APP_VERSION ${ALIASOF_gstreamer-app-1.0_VERSION})
|
|
|
|
set(GSTREAMER_RIFF_VERSION ${ALIASOF_gstreamer-riff-1.0_VERSION})
|
|
|
|
set(GSTREAMER_PBUTILS_VERSION ${ALIASOF_gstreamer-pbutils-1.0_VERSION})
|
2015-12-09 22:08:19 +08:00
|
|
|
endif()
|
|
|
|
endif(WIN32)
|
|
|
|
endif(WITH_GSTREAMER AND NOT WITH_GSTREAMER_0_10)
|
2013-12-06 17:20:29 +08:00
|
|
|
|
|
|
|
# if gstreamer 1.x was not found, or we specified we wanted 0.10, try to find it
|
2015-01-19 03:27:09 +08:00
|
|
|
if(WITH_GSTREAMER AND NOT HAVE_GSTREAMER OR WITH_GSTREAMER_0_10)
|
2017-06-30 23:21:43 +08:00
|
|
|
CHECK_MODULE(gstreamer-base-0.10 HAVE_GSTREAMER_BASE VIDEOIO)
|
|
|
|
CHECK_MODULE(gstreamer-video-0.10 HAVE_GSTREAMER_VIDEO VIDEOIO)
|
|
|
|
CHECK_MODULE(gstreamer-app-0.10 HAVE_GSTREAMER_APP VIDEOIO)
|
|
|
|
CHECK_MODULE(gstreamer-riff-0.10 HAVE_GSTREAMER_RIFF VIDEOIO)
|
|
|
|
CHECK_MODULE(gstreamer-pbutils-0.10 HAVE_GSTREAMER_PBUTILS VIDEOIO)
|
2013-12-06 17:20:29 +08:00
|
|
|
|
|
|
|
if(HAVE_GSTREAMER_BASE AND HAVE_GSTREAMER_VIDEO AND HAVE_GSTREAMER_APP AND HAVE_GSTREAMER_RIFF AND HAVE_GSTREAMER_PBUTILS)
|
|
|
|
set(HAVE_GSTREAMER TRUE)
|
|
|
|
set(GSTREAMER_BASE_VERSION ${ALIASOF_gstreamer-base-0.10_VERSION})
|
|
|
|
set(GSTREAMER_VIDEO_VERSION ${ALIASOF_gstreamer-video-0.10_VERSION})
|
|
|
|
set(GSTREAMER_APP_VERSION ${ALIASOF_gstreamer-app-0.10_VERSION})
|
|
|
|
set(GSTREAMER_RIFF_VERSION ${ALIASOF_gstreamer-riff-0.10_VERSION})
|
|
|
|
set(GSTREAMER_PBUTILS_VERSION ${ALIASOF_gstreamer-pbutils-0.10_VERSION})
|
|
|
|
endif()
|
2015-01-19 03:27:09 +08:00
|
|
|
endif(WITH_GSTREAMER AND NOT HAVE_GSTREAMER OR WITH_GSTREAMER_0_10)
|
2012-05-25 21:12:02 +08:00
|
|
|
|
|
|
|
# --- unicap ---
|
|
|
|
ocv_clear_vars(HAVE_UNICAP)
|
|
|
|
if(WITH_UNICAP)
|
2017-06-30 23:21:43 +08:00
|
|
|
CHECK_MODULE(libunicap HAVE_UNICAP_ VIDEOIO)
|
|
|
|
CHECK_MODULE(libucil HAVE_UNICAP_UCIL VIDEOIO)
|
2012-05-25 21:12:02 +08:00
|
|
|
if(HAVE_UNICAP_ AND HAVE_UNICAP_UCIL)
|
|
|
|
set(HAVE_UNICAP TRUE)
|
|
|
|
endif()
|
|
|
|
endif(WITH_UNICAP)
|
|
|
|
|
|
|
|
# --- PvApi ---
|
|
|
|
ocv_clear_vars(HAVE_PVAPI)
|
|
|
|
if(WITH_PVAPI)
|
|
|
|
find_path(PVAPI_INCLUDE_PATH "PvApi.h"
|
|
|
|
PATHS /usr/local /opt /usr ENV ProgramFiles ENV ProgramW6432
|
|
|
|
PATH_SUFFIXES include "Allied Vision Technologies/GigESDK/inc-pc" "AVT GigE SDK/inc-pc" "GigESDK/inc-pc"
|
|
|
|
DOC "The path to PvAPI header")
|
|
|
|
|
|
|
|
if(PVAPI_INCLUDE_PATH)
|
|
|
|
if(X86 AND NOT WIN32)
|
|
|
|
set(PVAPI_SDK_SUBDIR x86)
|
|
|
|
elseif(X86_64)
|
|
|
|
set(PVAPI_SDK_SUBDIR x64)
|
2013-03-27 23:03:51 +08:00
|
|
|
elseif(ARM)
|
2012-05-25 21:12:02 +08:00
|
|
|
set(PVAPI_SDK_SUBDIR arm)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
get_filename_component(_PVAPI_LIBRARY "${PVAPI_INCLUDE_PATH}/../lib-pc" ABSOLUTE)
|
|
|
|
if(PVAPI_SDK_SUBDIR)
|
|
|
|
set(_PVAPI_LIBRARY "${_PVAPI_LIBRARY}/${PVAPI_SDK_SUBDIR}")
|
|
|
|
endif()
|
|
|
|
if(NOT WIN32 AND CMAKE_COMPILER_IS_GNUCXX)
|
|
|
|
set(_PVAPI_LIBRARY "${_PVAPI_LIBRARY}/${CMAKE_OPENCV_GCC_VERSION_MAJOR}.${CMAKE_OPENCV_GCC_VERSION_MINOR}")
|
|
|
|
endif()
|
|
|
|
|
2013-07-03 06:19:22 +08:00
|
|
|
if(WIN32)
|
|
|
|
if(MINGW)
|
2013-07-20 21:03:30 +08:00
|
|
|
set(PVAPI_DEFINITIONS "-DPVDECL=__stdcall")
|
2013-07-03 06:19:22 +08:00
|
|
|
endif(MINGW)
|
|
|
|
set(PVAPI_LIBRARY "${_PVAPI_LIBRARY}/PvAPI.lib" CACHE PATH "The PvAPI library")
|
|
|
|
else(WIN32)
|
|
|
|
set(PVAPI_LIBRARY "${_PVAPI_LIBRARY}/${CMAKE_STATIC_LIBRARY_PREFIX}PvAPI${CMAKE_STATIC_LIBRARY_SUFFIX}" CACHE PATH "The PvAPI library")
|
|
|
|
endif(WIN32)
|
2012-05-25 21:12:02 +08:00
|
|
|
if(EXISTS "${PVAPI_LIBRARY}")
|
|
|
|
set(HAVE_PVAPI TRUE)
|
|
|
|
endif()
|
|
|
|
endif(PVAPI_INCLUDE_PATH)
|
|
|
|
endif(WITH_PVAPI)
|
|
|
|
|
2013-02-01 20:40:02 +08:00
|
|
|
# --- GigEVisionSDK ---
|
|
|
|
ocv_clear_vars(HAVE_GIGE_API)
|
|
|
|
if(WITH_GIGEAPI)
|
|
|
|
find_path(GIGEAPI_INCLUDE_PATH "GigEVisionSDK.h"
|
|
|
|
PATHS /usr/local /var /opt /usr ENV ProgramFiles ENV ProgramW6432
|
|
|
|
PATH_SUFFIXES include "Smartek Vision Technologies/GigEVisionSDK/gige_cpp" "GigEVisionSDK/gige_cpp" "GigEVisionSDK/gige_c"
|
|
|
|
DOC "The path to Smartek GigEVisionSDK header")
|
|
|
|
FIND_LIBRARY(GIGEAPI_LIBRARIES NAMES GigEVisionSDK)
|
|
|
|
if(GIGEAPI_LIBRARIES AND GIGEAPI_INCLUDE_PATH)
|
|
|
|
set(HAVE_GIGE_API TRUE)
|
|
|
|
endif()
|
|
|
|
endif(WITH_GIGEAPI)
|
|
|
|
|
2016-10-08 03:55:49 +08:00
|
|
|
# --- Aravis SDK ---
|
|
|
|
ocv_clear_vars(HAVE_ARAVIS_API)
|
|
|
|
if(WITH_ARAVIS)
|
2017-07-05 17:30:43 +08:00
|
|
|
check_module(glib-2.0 HAVE_ARAVIS_GLIB VIDEOIO)
|
|
|
|
if(HAVE_ARAVIS_GLIB)
|
|
|
|
find_path(ARAVIS_INCLUDE_PATH "arv.h"
|
|
|
|
PATHS /usr/local /var /opt /usr ENV ProgramFiles ENV ProgramW6432
|
|
|
|
PATH_SUFFIXES include "aravis-0.6" "aravis-0.4"
|
|
|
|
DOC "The path to Aravis SDK headers")
|
|
|
|
find_library(ARAVIS_LIBRARIES NAMES "aravis-0.6" "aravis-0.4" )
|
|
|
|
if(ARAVIS_LIBRARIES AND ARAVIS_INCLUDE_PATH)
|
|
|
|
set(HAVE_ARAVIS_API TRUE)
|
|
|
|
endif()
|
|
|
|
else()
|
|
|
|
message("Can not build Aravis support without glib2")
|
2016-10-08 03:55:49 +08:00
|
|
|
endif()
|
|
|
|
endif(WITH_ARAVIS)
|
|
|
|
|
2012-05-25 21:12:02 +08:00
|
|
|
# --- Dc1394 ---
|
|
|
|
ocv_clear_vars(HAVE_DC1394 HAVE_DC1394_2)
|
|
|
|
if(WITH_1394)
|
2013-05-14 22:34:02 +08:00
|
|
|
if(WIN32 AND MINGW)
|
2013-05-14 22:20:01 +08:00
|
|
|
find_path(CMU1394_INCLUDE_PATH "/1394common.h"
|
|
|
|
PATH_SUFFIXES include
|
|
|
|
DOC "The path to cmu1394 headers")
|
|
|
|
find_path(DC1394_2_INCLUDE_PATH "/dc1394/dc1394.h"
|
|
|
|
PATH_SUFFIXES include
|
|
|
|
DOC "The path to DC1394 2.x headers")
|
|
|
|
if(CMU1394_INCLUDE_PATH AND DC1394_2_INCLUDE_PATH)
|
|
|
|
set(CMU1394_LIB_DIR "${CMU1394_INCLUDE_PATH}/../lib" CACHE PATH "Full path of CMU1394 library directory")
|
|
|
|
set(DC1394_2_LIB_DIR "${DC1394_2_INCLUDE_PATH}/../lib" CACHE PATH "Full path of DC1394 2.x library directory")
|
|
|
|
if(EXISTS "${CMU1394_LIB_DIR}/lib1394camera.a" AND EXISTS "${DC1394_2_LIB_DIR}/libdc1394.a")
|
|
|
|
set(HAVE_DC1394_2 TRUE)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
if(HAVE_DC1394_2)
|
|
|
|
ocv_parse_pkg("libdc1394-2" "${DC1394_2_LIB_DIR}/pkgconfig" "")
|
|
|
|
ocv_include_directories(${DC1394_2_INCLUDE_PATH})
|
2014-07-10 22:27:32 +08:00
|
|
|
set(VIDEOIO_LIBRARIES ${VIDEOIO_LIBRARIES}
|
2013-05-14 22:20:01 +08:00
|
|
|
"${DC1394_2_LIB_DIR}/libdc1394.a"
|
|
|
|
"${CMU1394_LIB_DIR}/lib1394camera.a")
|
|
|
|
endif(HAVE_DC1394_2)
|
2013-05-14 22:34:02 +08:00
|
|
|
else(WIN32 AND MINGW)
|
2017-06-30 23:21:43 +08:00
|
|
|
CHECK_MODULE(libdc1394-2 HAVE_DC1394_2 VIDEOIO)
|
2013-05-14 22:20:01 +08:00
|
|
|
if(NOT HAVE_DC1394_2)
|
2017-06-30 23:21:43 +08:00
|
|
|
CHECK_MODULE(libdc1394 HAVE_DC1394 VIDEOIO)
|
2013-05-14 22:20:01 +08:00
|
|
|
endif()
|
2013-05-14 22:34:02 +08:00
|
|
|
endif(WIN32 AND MINGW)
|
2012-05-25 21:12:02 +08:00
|
|
|
endif(WITH_1394)
|
|
|
|
|
|
|
|
# --- xine ---
|
|
|
|
ocv_clear_vars(HAVE_XINE)
|
|
|
|
if(WITH_XINE)
|
2017-06-30 23:21:43 +08:00
|
|
|
CHECK_MODULE(libxine HAVE_XINE VIDEOIO)
|
2012-05-25 21:12:02 +08:00
|
|
|
endif(WITH_XINE)
|
|
|
|
|
|
|
|
# --- V4L ---
|
2013-01-28 21:58:57 +08:00
|
|
|
ocv_clear_vars(HAVE_LIBV4L HAVE_CAMV4L HAVE_CAMV4L2 HAVE_VIDEOIO)
|
2012-05-25 21:12:02 +08:00
|
|
|
if(WITH_V4L)
|
2013-09-30 16:44:59 +08:00
|
|
|
if(WITH_LIBV4L)
|
2017-06-30 23:21:43 +08:00
|
|
|
CHECK_MODULE(libv4l1 HAVE_LIBV4L1 VIDEOIO)
|
|
|
|
CHECK_MODULE(libv4l2 HAVE_LIBV4L2 VIDEOIO)
|
2014-07-09 20:55:40 +08:00
|
|
|
if(HAVE_LIBV4L1 AND HAVE_LIBV4L2)
|
|
|
|
set(HAVE_LIBV4L YES)
|
|
|
|
else()
|
|
|
|
set(HAVE_LIBV4L NO)
|
|
|
|
endif()
|
2013-09-30 16:44:59 +08:00
|
|
|
endif()
|
2012-05-25 21:12:02 +08:00
|
|
|
CHECK_INCLUDE_FILE(linux/videodev.h HAVE_CAMV4L)
|
|
|
|
CHECK_INCLUDE_FILE(linux/videodev2.h HAVE_CAMV4L2)
|
2012-09-17 17:08:37 +08:00
|
|
|
CHECK_INCLUDE_FILE(sys/videoio.h HAVE_VIDEOIO)
|
2012-05-25 21:12:02 +08:00
|
|
|
endif(WITH_V4L)
|
|
|
|
|
|
|
|
# --- OpenNI ---
|
|
|
|
ocv_clear_vars(HAVE_OPENNI HAVE_OPENNI_PRIME_SENSOR_MODULE)
|
|
|
|
if(WITH_OPENNI)
|
|
|
|
include("${OpenCV_SOURCE_DIR}/cmake/OpenCVFindOpenNI.cmake")
|
|
|
|
endif(WITH_OPENNI)
|
|
|
|
|
2014-07-01 16:07:01 +08:00
|
|
|
ocv_clear_vars(HAVE_OPENNI2)
|
|
|
|
if(WITH_OPENNI2)
|
|
|
|
include("${OpenCV_SOURCE_DIR}/cmake/OpenCVFindOpenNI2.cmake")
|
|
|
|
endif(WITH_OPENNI2)
|
|
|
|
|
2012-05-25 21:12:02 +08:00
|
|
|
# --- XIMEA ---
|
|
|
|
ocv_clear_vars(HAVE_XIMEA)
|
|
|
|
if(WITH_XIMEA)
|
|
|
|
include("${OpenCV_SOURCE_DIR}/cmake/OpenCVFindXimea.cmake")
|
|
|
|
if(XIMEA_FOUND)
|
|
|
|
set(HAVE_XIMEA TRUE)
|
|
|
|
endif()
|
|
|
|
endif(WITH_XIMEA)
|
|
|
|
|
|
|
|
# --- FFMPEG ---
|
2016-11-28 04:31:04 +08:00
|
|
|
ocv_clear_vars(HAVE_FFMPEG)
|
2012-05-25 21:12:02 +08:00
|
|
|
if(WITH_FFMPEG)
|
2013-03-27 08:19:52 +08:00
|
|
|
if(WIN32 AND NOT ARM)
|
2015-06-05 17:39:56 +08:00
|
|
|
include("${OpenCV_SOURCE_DIR}/3rdparty/ffmpeg/ffmpeg.cmake")
|
2017-03-15 18:19:59 +08:00
|
|
|
download_win_ffmpeg(FFMPEG_CMAKE_SCRIPT)
|
|
|
|
if(FFMPEG_CMAKE_SCRIPT)
|
|
|
|
set(HAVE_FFMPEG TRUE)
|
|
|
|
include("${FFMPEG_CMAKE_SCRIPT}")
|
|
|
|
endif()
|
2016-11-28 04:31:04 +08:00
|
|
|
elseif(PKG_CONFIG_FOUND)
|
|
|
|
ocv_check_modules(FFMPEG libavcodec libavformat libavutil libswscale)
|
|
|
|
ocv_check_modules(FFMPEG_libavresample libavresample)
|
|
|
|
if(FFMPEG_libavresample_FOUND)
|
|
|
|
ocv_append_build_options(FFMPEG FFMPEG_libavresample)
|
2012-05-25 21:12:02 +08:00
|
|
|
endif()
|
|
|
|
if(HAVE_FFMPEG)
|
2016-11-28 04:31:04 +08:00
|
|
|
try_compile(__VALID_FFMPEG
|
|
|
|
"${OpenCV_BINARY_DIR}"
|
|
|
|
"${OpenCV_SOURCE_DIR}/cmake/checks/ffmpeg_test.cpp"
|
|
|
|
CMAKE_FLAGS "-DINCLUDE_DIRECTORIES:STRING=${FFMPEG_INCLUDE_DIRS}"
|
|
|
|
"-DLINK_DIRECTORIES:STRING=${FFMPEG_LIBRARY_DIRS}"
|
|
|
|
"-DLINK_LIBRARIES:STRING=${FFMPEG_LIBRARIES}"
|
|
|
|
OUTPUT_VARIABLE TRY_OUT
|
|
|
|
)
|
|
|
|
if(NOT __VALID_FFMPEG)
|
|
|
|
#message(FATAL_ERROR "FFMPEG: test check build log:\n${TRY_OUT}")
|
|
|
|
message(STATUS "WARNING: Can't build ffmpeg test code")
|
2016-12-19 05:22:16 +08:00
|
|
|
set(HAVE_FFMPEG FALSE)
|
2016-11-28 04:31:04 +08:00
|
|
|
else()
|
|
|
|
ocv_append_build_options(VIDEOIO FFMPEG)
|
|
|
|
endif()
|
2012-05-25 21:12:02 +08:00
|
|
|
endif()
|
2016-11-28 04:31:04 +08:00
|
|
|
else()
|
|
|
|
message(STATUS "Can't find ffmpeg - 'pkg-config' utility is missing")
|
2015-02-02 04:51:33 +08:00
|
|
|
endif()
|
2012-05-25 21:12:02 +08:00
|
|
|
endif(WITH_FFMPEG)
|
|
|
|
|
2013-04-03 09:01:20 +08:00
|
|
|
# --- VideoInput/DirectShow ---
|
|
|
|
if(WITH_DSHOW)
|
2017-07-21 20:07:45 +08:00
|
|
|
if(MSVC_VERSION GREATER 1499)
|
|
|
|
set(HAVE_DSHOW 1)
|
|
|
|
elseif(NOT HAVE_DSHOW)
|
|
|
|
check_include_file(DShow.h HAVE_DSHOW)
|
|
|
|
endif()
|
2013-04-03 09:01:20 +08:00
|
|
|
endif(WITH_DSHOW)
|
|
|
|
|
|
|
|
# --- VideoInput/Microsoft Media Foundation ---
|
2014-09-25 18:05:54 +08:00
|
|
|
ocv_clear_vars(HAVE_MSMF)
|
2013-04-03 09:01:20 +08:00
|
|
|
if(WITH_MSMF)
|
|
|
|
check_include_file(Mfapi.h HAVE_MSMF)
|
|
|
|
endif(WITH_MSMF)
|
2012-05-25 21:12:02 +08:00
|
|
|
|
2014-07-10 22:27:32 +08:00
|
|
|
# --- Extra HighGUI and VideoIO libs on Windows ---
|
2012-05-25 21:12:02 +08:00
|
|
|
if(WIN32)
|
2014-07-10 22:27:32 +08:00
|
|
|
list(APPEND HIGHGUI_LIBRARIES comctl32 gdi32 ole32 setupapi ws2_32)
|
2015-03-20 23:19:18 +08:00
|
|
|
if(HAVE_VFW)
|
|
|
|
list(APPEND VIDEOIO_LIBRARIES vfw32)
|
|
|
|
endif()
|
2012-08-30 20:52:39 +08:00
|
|
|
if(MINGW64)
|
2014-07-10 22:27:32 +08:00
|
|
|
list(APPEND VIDEOIO_LIBRARIES avifil32 avicap32 winmm msvfw32)
|
|
|
|
list(REMOVE_ITEM VIDEOIO_LIBRARIES vfw32)
|
2012-05-25 21:12:02 +08:00
|
|
|
elseif(MINGW)
|
2014-07-10 22:27:32 +08:00
|
|
|
list(APPEND VIDEOIO_LIBRARIES winmm)
|
2012-05-25 21:12:02 +08:00
|
|
|
endif()
|
|
|
|
endif(WIN32)
|
2013-07-10 22:20:34 +08:00
|
|
|
|
2016-09-09 20:38:00 +08:00
|
|
|
if(APPLE)
|
|
|
|
if(WITH_AVFOUNDATION)
|
|
|
|
set(HAVE_AVFOUNDATION YES)
|
|
|
|
endif()
|
|
|
|
if(NOT IOS)
|
|
|
|
if(WITH_QUICKTIME)
|
|
|
|
set(HAVE_QUICKTIME YES)
|
|
|
|
elseif(WITH_QTKIT)
|
|
|
|
set(HAVE_QTKIT YES)
|
|
|
|
endif()
|
2013-08-23 20:09:41 +08:00
|
|
|
endif()
|
2016-09-09 20:38:00 +08:00
|
|
|
endif(APPLE)
|
2013-12-13 21:25:16 +08:00
|
|
|
|
2013-12-19 14:29:19 +08:00
|
|
|
# --- Intel Perceptual Computing SDK ---
|
2013-12-13 21:25:16 +08:00
|
|
|
if(WITH_INTELPERC)
|
|
|
|
include("${OpenCV_SOURCE_DIR}/cmake/OpenCVFindIntelPerCSDK.cmake")
|
|
|
|
endif(WITH_INTELPERC)
|
2015-05-21 06:41:39 +08:00
|
|
|
|
2017-03-23 16:55:43 +08:00
|
|
|
if(WITH_MFX)
|
|
|
|
include("${OpenCV_SOURCE_DIR}/cmake/OpenCVDetectMediaSDK.cmake")
|
|
|
|
endif()
|
|
|
|
|
2015-05-21 06:41:39 +08:00
|
|
|
# --- gPhoto2 ---
|
|
|
|
ocv_clear_vars(HAVE_GPHOTO2)
|
|
|
|
if(WITH_GPHOTO2)
|
2017-06-30 23:21:43 +08:00
|
|
|
CHECK_MODULE(libgphoto2 HAVE_GPHOTO2 VIDEOIO)
|
2015-05-21 06:41:39 +08:00
|
|
|
endif(WITH_GPHOTO2)
|
2015-08-12 16:59:05 +08:00
|
|
|
|
2015-08-31 07:33:15 +08:00
|
|
|
# --- VA & VA_INTEL ---
|
|
|
|
if(WITH_VA_INTEL)
|
|
|
|
include("${OpenCV_SOURCE_DIR}/cmake/OpenCVFindVA_INTEL.cmake")
|
|
|
|
if(VA_INTEL_IOCL_INCLUDE_DIR)
|
|
|
|
ocv_include_directories(${VA_INTEL_IOCL_INCLUDE_DIR})
|
2015-08-12 16:59:05 +08:00
|
|
|
endif()
|
2015-08-31 07:33:15 +08:00
|
|
|
set(WITH_VA YES)
|
|
|
|
endif(WITH_VA_INTEL)
|
|
|
|
|
|
|
|
if(WITH_VA)
|
|
|
|
include("${OpenCV_SOURCE_DIR}/cmake/OpenCVFindVA.cmake")
|
|
|
|
if(VA_INCLUDE_DIR)
|
|
|
|
ocv_include_directories(${VA_INCLUDE_DIR})
|
|
|
|
endif()
|
|
|
|
endif(WITH_VA)
|