718c41634f
1.项目后端整体迁移至PaddleOCR-NCNN算法,已通过基本的兼容性测试 2.工程改为使用CMake组织,后续为了更好地兼容第三方库,不再提供QMake工程 3.重整权利声明文件,重整代码工程,确保最小化侵权风险 Log: 切换后端至PaddleOCR-NCNN,切换工程为CMake Change-Id: I4d5d2c5d37505a4a24b389b1a4c5d12f17bfa38c
39 lines
1.2 KiB
CMake
39 lines
1.2 KiB
CMake
set(NCNN_OPENMP @NCNN_OPENMP@)
|
|
set(NCNN_THREADS @NCNN_THREADS@)
|
|
set(NCNN_VULKAN @NCNN_VULKAN@)
|
|
set(NCNN_SHARED_LIB @NCNN_SHARED_LIB@)
|
|
set(NCNN_SYSTEM_GLSLANG @NCNN_SYSTEM_GLSLANG@)
|
|
|
|
if(NCNN_OPENMP)
|
|
find_package(OpenMP)
|
|
endif()
|
|
|
|
if(NCNN_THREADS)
|
|
set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
|
|
set(THREADS_PREFER_PTHREAD_FLAG TRUE)
|
|
find_package(Threads REQUIRED)
|
|
endif()
|
|
|
|
if(NCNN_VULKAN)
|
|
find_package(Vulkan REQUIRED)
|
|
|
|
if(NOT NCNN_SHARED_LIB)
|
|
if(NCNN_SYSTEM_GLSLANG)
|
|
set(GLSLANG_TARGET_DIR "@GLSLANG_TARGET_DIR@")
|
|
else()
|
|
set(GLSLANG_TARGET_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../@CMAKE_INSTALL_LIBDIR@/cmake")
|
|
endif(NCNN_SYSTEM_GLSLANG)
|
|
|
|
include(${GLSLANG_TARGET_DIR}/OSDependentTargets.cmake)
|
|
include(${GLSLANG_TARGET_DIR}/OGLCompilerTargets.cmake)
|
|
if(EXISTS "${GLSLANG_TARGET_DIR}/HLSLTargets.cmake")
|
|
# hlsl support can be optional
|
|
include("${GLSLANG_TARGET_DIR}/HLSLTargets.cmake")
|
|
endif()
|
|
include(${GLSLANG_TARGET_DIR}/glslangTargets.cmake)
|
|
include(${GLSLANG_TARGET_DIR}/SPIRVTargets.cmake)
|
|
endif()
|
|
endif(NCNN_VULKAN)
|
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/ncnn.cmake)
|