718c41634f
1.项目后端整体迁移至PaddleOCR-NCNN算法,已通过基本的兼容性测试 2.工程改为使用CMake组织,后续为了更好地兼容第三方库,不再提供QMake工程 3.重整权利声明文件,重整代码工程,确保最小化侵权风险 Log: 切换后端至PaddleOCR-NCNN,切换工程为CMake Change-Id: I4d5d2c5d37505a4a24b389b1a4c5d12f17bfa38c
33 lines
982 B
CMake
33 lines
982 B
CMake
# - Find Flake8
|
|
# Find the Flake8 executable and extract the version number
|
|
#
|
|
# OUTPUT Variables
|
|
#
|
|
# FLAKE8_FOUND
|
|
# True if the flake8 package was found
|
|
# FLAKE8_EXECUTABLE
|
|
# The flake8 executable location
|
|
# FLAKE8_VERSION
|
|
# A string denoting the version of flake8 that has been found
|
|
|
|
find_host_program(FLAKE8_EXECUTABLE flake8 PATHS /usr/bin)
|
|
|
|
if(FLAKE8_EXECUTABLE AND NOT DEFINED FLAKE8_VERSION)
|
|
execute_process(COMMAND ${FLAKE8_EXECUTABLE} --version RESULT_VARIABLE _result OUTPUT_VARIABLE FLAKE8_VERSION_RAW)
|
|
if(NOT _result EQUAL 0)
|
|
ocv_clear_vars(FLAKE8_EXECUTABLE FLAKE8_VERSION)
|
|
elseif(FLAKE8_VERSION_RAW MATCHES "^([0-9\\.]+[0-9])")
|
|
set(FLAKE8_VERSION "${CMAKE_MATCH_1}")
|
|
else()
|
|
set(FLAKE8_VERSION "unknown")
|
|
endif()
|
|
endif()
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Flake8
|
|
REQUIRED_VARS FLAKE8_EXECUTABLE
|
|
VERSION_VAR FLAKE8_VERSION
|
|
)
|
|
|
|
mark_as_advanced(FLAKE8_EXECUTABLE FLAKE8_VERSION)
|