718c41634f
1.项目后端整体迁移至PaddleOCR-NCNN算法,已通过基本的兼容性测试 2.工程改为使用CMake组织,后续为了更好地兼容第三方库,不再提供QMake工程 3.重整权利声明文件,重整代码工程,确保最小化侵权风险 Log: 切换后端至PaddleOCR-NCNN,切换工程为CMake Change-Id: I4d5d2c5d37505a4a24b389b1a4c5d12f17bfa38c
31 lines
776 B
CMake
31 lines
776 B
CMake
if(WIN32)
|
|
try_compile(__VALID_DIRECTX
|
|
"${OpenCV_BINARY_DIR}"
|
|
"${OpenCV_SOURCE_DIR}/cmake/checks/directx.cpp"
|
|
OUTPUT_VARIABLE TRY_OUT
|
|
)
|
|
if(NOT __VALID_DIRECTX)
|
|
return()
|
|
endif()
|
|
try_compile(__VALID_DIRECTX_NV12
|
|
"${OpenCV_BINARY_DIR}"
|
|
"${OpenCV_SOURCE_DIR}/cmake/checks/directx.cpp"
|
|
COMPILE_DEFINITIONS "-DCHECK_NV12"
|
|
OUTPUT_VARIABLE TRY_OUT
|
|
)
|
|
if(__VALID_DIRECTX_NV12)
|
|
set(HAVE_DIRECTX_NV12 ON)
|
|
else()
|
|
message(STATUS "No support for DirectX NV12 format (install Windows 8 SDK)")
|
|
endif()
|
|
set(HAVE_DIRECTX ON)
|
|
set(HAVE_D3D11 ON)
|
|
set(HAVE_D3D10 ON)
|
|
set(HAVE_D3D9 ON)
|
|
|
|
if(HAVE_OPENCL AND WITH_OPENCL_D3D11_NV AND EXISTS "${OPENCL_INCLUDE_DIR}/CL/cl_d3d11_ext.h")
|
|
set(HAVE_OPENCL_D3D11_NV ON)
|
|
endif()
|
|
|
|
endif()
|