mirror of
https://gitcode.com/gh_mirrors/es/esp32-opencv.git
synced 2025-08-26 02:10:21 +08:00
initial commit
This commit is contained in:
31
modules/videoio/cmake/detect_dc1394.cmake
Normal file
31
modules/videoio/cmake/detect_dc1394.cmake
Normal file
@ -0,0 +1,31 @@
|
||||
# --- Dc1394 ---
|
||||
if(NOT HAVE_DC1394_2 AND PKG_CONFIG_FOUND)
|
||||
ocv_check_modules(DC1394_2 libdc1394-2)
|
||||
if(DC1394_2_FOUND)
|
||||
set(DC1394_2_VERSION "${DC1394_2_VERSION}" PARENT_SCOPE) # informational
|
||||
set(HAVE_DC1394_2 TRUE)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT HAVE_DC1394_2)
|
||||
find_path(DC1394_INCLUDE "dc1394/dc1394.h"
|
||||
PATHS "${DC1394_ROOT}" ENV DC1394_ROOT
|
||||
PATH_SUFFIXES "include"
|
||||
NO_DEFAULT_PATH)
|
||||
find_library(DC1394_LIBRARY "dc1394"
|
||||
PATHS "${DC1394_ROOT}" ENV DC1394_ROOT
|
||||
PATH_SUFFIXES "lib"
|
||||
NO_DEFAULT_PATH)
|
||||
if(DC1394_INCLUDE AND DC1394_LIBRARY)
|
||||
set(HAVE_DC1394_2 TRUE)
|
||||
set(DC1394_2_INCLUDE_DIRS "${DC1394_INCLUDE}")
|
||||
set(DC1394_2_LIBRARIES "${DC1394_LIBRARY}")
|
||||
set(DC1394_2_VERSION "unknown" PARENT_SCOPE) # informational
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(HAVE_DC1394_2)
|
||||
ocv_add_external_target(dc1394_2 "${DC1394_2_INCLUDE_DIRS}" "${DC1394_2_LIBRARIES}" "HAVE_DC1394_2")
|
||||
endif()
|
||||
|
||||
set(HAVE_DC1394_2 ${HAVE_DC1394_2} PARENT_SCOPE)
|
Reference in New Issue
Block a user