718c41634f
1.项目后端整体迁移至PaddleOCR-NCNN算法,已通过基本的兼容性测试 2.工程改为使用CMake组织,后续为了更好地兼容第三方库,不再提供QMake工程 3.重整权利声明文件,重整代码工程,确保最小化侵权风险 Log: 切换后端至PaddleOCR-NCNN,切换工程为CMake Change-Id: I4d5d2c5d37505a4a24b389b1a4c5d12f17bfa38c
34 lines
1.1 KiB
CMake
34 lines
1.1 KiB
CMake
#=============================================================================
|
|
# Find WebP library
|
|
#=============================================================================
|
|
# Find the native WebP headers and libraries.
|
|
#
|
|
# WEBP_INCLUDE_DIRS - where to find webp/decode.h, etc.
|
|
# WEBP_LIBRARIES - List of libraries when using webp.
|
|
# WEBP_FOUND - True if webp is found.
|
|
#=============================================================================
|
|
|
|
# Look for the header file.
|
|
|
|
unset(WEBP_FOUND)
|
|
|
|
FIND_PATH(WEBP_INCLUDE_DIR NAMES webp/decode.h)
|
|
|
|
if(NOT WEBP_INCLUDE_DIR)
|
|
unset(WEBP_FOUND)
|
|
else()
|
|
MARK_AS_ADVANCED(WEBP_INCLUDE_DIR)
|
|
|
|
# Look for the library.
|
|
FIND_LIBRARY(WEBP_LIBRARY NAMES webp)
|
|
MARK_AS_ADVANCED(WEBP_LIBRARY)
|
|
|
|
# handle the QUIETLY and REQUIRED arguments and set WEBP_FOUND to TRUE if
|
|
# all listed variables are TRUE
|
|
INCLUDE(${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake)
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(WebP DEFAULT_MSG WEBP_LIBRARY WEBP_INCLUDE_DIR)
|
|
|
|
SET(WEBP_LIBRARIES ${WEBP_LIBRARY})
|
|
SET(WEBP_INCLUDE_DIRS ${WEBP_INCLUDE_DIR})
|
|
endif()
|