718c41634f
1.项目后端整体迁移至PaddleOCR-NCNN算法,已通过基本的兼容性测试 2.工程改为使用CMake组织,后续为了更好地兼容第三方库,不再提供QMake工程 3.重整权利声明文件,重整代码工程,确保最小化侵权风险 Log: 切换后端至PaddleOCR-NCNN,切换工程为CMake Change-Id: I4d5d2c5d37505a4a24b389b1a4c5d12f17bfa38c
31 lines
960 B
CMake
31 lines
960 B
CMake
if(NOT HAVE_XIMEA)
|
|
if(WIN32)
|
|
get_filename_component(regpath "[HKEY_CURRENT_USER\\Software\\XIMEA\\CamSupport\\API;Path]" ABSOLUTE)
|
|
if(NOT EXISTS ${regpath})
|
|
get_filename_component(regpath "[HKEY_LOCAL_MACHINE\\SOFTWARE\\XIMEA\\API_SoftwarePackage;Path]" ABSOLUTE)
|
|
endif()
|
|
endif()
|
|
if(X86_64)
|
|
set(lib_dir "API/x64" "API/64bit")
|
|
set(lib_suffix "64")
|
|
else()
|
|
set(lib_dir "API/x86" "API/32bit")
|
|
set(lib_suffix "32")
|
|
endif()
|
|
find_path(XIMEA_INCLUDE "xiApi.h"
|
|
PATHS "${XIMEA_ROOT}" ENV XIMEA_ROOT "/opt/XIMEA"
|
|
HINTS "${regpath}"
|
|
PATH_SUFFIXES "include" "API")
|
|
find_library(XIMEA_LIBRARY m3api xiapi${lib_suffix}
|
|
PATHS "${XIMEA_ROOT}" ENV XIMEA_ROOT "/opt/XIMEA"
|
|
HINTS "${regpath}"
|
|
PATH_SUFFIXES ${lib_dir})
|
|
if(XIMEA_INCLUDE AND XIMEA_LIBRARY)
|
|
set(HAVE_XIMEA TRUE)
|
|
endif()
|
|
endif()
|
|
|
|
if(HAVE_XIMEA)
|
|
ocv_add_external_target(ximea "${XIMEA_INCLUDE}" "${XIMEA_LIBRARY}" "HAVE_XIMEA")
|
|
endif()
|