718c41634f
1.项目后端整体迁移至PaddleOCR-NCNN算法,已通过基本的兼容性测试 2.工程改为使用CMake组织,后续为了更好地兼容第三方库,不再提供QMake工程 3.重整权利声明文件,重整代码工程,确保最小化侵权风险 Log: 切换后端至PaddleOCR-NCNN,切换工程为CMake Change-Id: I4d5d2c5d37505a4a24b389b1a4c5d12f17bfa38c
35 lines
1.1 KiB
CMake
35 lines
1.1 KiB
CMake
set(OPENCV_JAVA_SOURCE_VERSION "" CACHE STRING "Java source version (javac Ant target)")
|
|
set(OPENCV_JAVA_TARGET_VERSION "" CACHE STRING "Java target version (javac Ant target)")
|
|
|
|
file(TO_CMAKE_PATH "$ENV{ANT_DIR}" ANT_DIR_ENV_PATH)
|
|
file(TO_CMAKE_PATH "$ENV{ProgramFiles}" ProgramFiles_ENV_PATH)
|
|
|
|
if(CMAKE_HOST_WIN32)
|
|
set(ANT_NAME ant.bat)
|
|
else()
|
|
set(ANT_NAME ant)
|
|
endif()
|
|
|
|
find_host_program(ANT_EXECUTABLE NAMES ${ANT_NAME}
|
|
PATHS "${ANT_DIR_ENV_PATH}/bin" "${ProgramFiles_ENV_PATH}/apache-ant/bin"
|
|
NO_DEFAULT_PATH
|
|
)
|
|
|
|
find_host_program(ANT_EXECUTABLE NAMES ${ANT_NAME})
|
|
|
|
if(ANT_EXECUTABLE)
|
|
execute_process(COMMAND ${ANT_EXECUTABLE} -version
|
|
RESULT_VARIABLE ANT_ERROR_LEVEL
|
|
OUTPUT_VARIABLE ANT_VERSION_FULL
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
if (ANT_ERROR_LEVEL)
|
|
unset(ANT_EXECUTABLE)
|
|
unset(ANT_EXECUTABLE CACHE)
|
|
else()
|
|
string(REGEX MATCH "[0-9]+.[0-9]+.[0-9]+" ANT_VERSION "${ANT_VERSION_FULL}")
|
|
set(ANT_VERSION "${ANT_VERSION}" CACHE INTERNAL "Detected ant version")
|
|
|
|
message(STATUS "Found apache ant: ${ANT_EXECUTABLE} (${ANT_VERSION})")
|
|
endif()
|
|
endif()
|