forked from DayBreak-u/chineseocr_lite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d3aa354
commit 1469b42
Showing
7 changed files
with
78 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
cpp_projects/OcrLiteNcnn/ncnn-static/NcnnWrapperConfig.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
if (APPLE) | ||
set(NCNN_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/macos/include") | ||
include_directories(${NCNN_INCLUDE_DIRS}) | ||
message("配置macOS ncnn 路径: ${CMAKE_CURRENT_LIST_DIR}/macos/lib/cmake/ncnn") | ||
set(ncnn_DIR "${CMAKE_CURRENT_LIST_DIR}/macos/lib/cmake/ncnn") | ||
elseif (WIN32) | ||
if (CMAKE_CL_64) | ||
message("配置WINDOWS ncnn x64 路径: ${CMAKE_CURRENT_LIST_DIR}/windows-x64/lib/cmake/ncnn") | ||
set(ncnn_DIR "${CMAKE_CURRENT_LIST_DIR}/windows-x64/lib/cmake/ncnn") | ||
set(NCNN_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/windows-x64/include") | ||
else () | ||
message("配置WINDOWS ncnn x86 路径: ${CMAKE_CURRENT_LIST_DIR}/windows-x86/lib/cmake/ncnn") | ||
set(ncnn_DIR "${CMAKE_CURRENT_LIST_DIR}/windows-x86/lib/cmake/ncnn") | ||
set(NCNN_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/windows-x86/include") | ||
endif () | ||
include_directories(${NCNN_INCLUDE_DIRS}) | ||
elseif (UNIX) | ||
set(NCNN_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/linux/include") | ||
include_directories(${NCNN_INCLUDE_DIRS}) | ||
message("配置Linux ncnn 路径: ${CMAKE_CURRENT_LIST_DIR}/linux/lib/cmake/ncnn") | ||
set(ncnn_DIR "${CMAKE_CURRENT_LIST_DIR}/linux/lib/cmake/ncnn") | ||
endif () | ||
|
23 changes: 23 additions & 0 deletions
23
cpp_projects/OcrLiteNcnn/ncnn-vulkan-static/NcnnWrapperConfig.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
if (APPLE) | ||
set(NCNN_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/macos/include") | ||
include_directories(${NCNN_INCLUDE_DIRS}) | ||
message("配置macOS ncnn 路径: ${CMAKE_CURRENT_LIST_DIR}/macos/lib/cmake/ncnn") | ||
set(ncnn_DIR "${CMAKE_CURRENT_LIST_DIR}/macos/lib/cmake/ncnn") | ||
elseif (WIN32) | ||
if (CMAKE_CL_64) | ||
message("配置WINDOWS ncnn x64 路径: ${CMAKE_CURRENT_LIST_DIR}/windows-x64/lib/cmake/ncnn") | ||
set(ncnn_DIR "${CMAKE_CURRENT_LIST_DIR}/windows-x64/lib/cmake/ncnn") | ||
set(NCNN_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/windows-x64/include") | ||
else () | ||
message("配置WINDOWS ncnn x86 路径: ${CMAKE_CURRENT_LIST_DIR}/windows-x86/lib/cmake/ncnn") | ||
set(ncnn_DIR "${CMAKE_CURRENT_LIST_DIR}/windows-x86/lib/cmake/ncnn") | ||
set(NCNN_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/windows-x86/include") | ||
endif () | ||
include_directories(${NCNN_INCLUDE_DIRS}) | ||
elseif (UNIX) | ||
set(NCNN_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/linux/include") | ||
include_directories(${NCNN_INCLUDE_DIRS}) | ||
message("配置Linux ncnn 路径: ${CMAKE_CURRENT_LIST_DIR}/linux/lib/cmake/ncnn") | ||
set(ncnn_DIR "${CMAKE_CURRENT_LIST_DIR}/linux/lib/cmake/ncnn") | ||
endif () | ||
|
15 changes: 15 additions & 0 deletions
15
cpp_projects/OcrLiteNcnn/opencv-static/OpenCVWrapperConfig.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
if (WIN32) | ||
if (CMAKE_CL_64) | ||
message("配置WINDOWS OpenCV x64 路径: ${CMAKE_CURRENT_LIST_DIR}/windows-x64") | ||
set(OpenCV_DIR "${CMAKE_CURRENT_LIST_DIR}/windows-x64") | ||
else () | ||
message("配置WINDOWS OpenCV x86 路径: ${CMAKE_CURRENT_LIST_DIR}/windows-x86") | ||
set(OpenCV_DIR "${CMAKE_CURRENT_LIST_DIR}/windows-x86") | ||
endif () | ||
elseif (APPLE) | ||
message("配置macOS OpenCV 路径: ${CMAKE_CURRENT_LIST_DIR}/macos/lib/cmake/opencv4") | ||
set(OpenCV_DIR "${CMAKE_CURRENT_LIST_DIR}/macos/lib/cmake/opencv4") | ||
elseif (UNIX) | ||
message("配置Linux OpenCV 路径: ${CMAKE_CURRENT_LIST_DIR}/linux/lib/cmake/opencv4") | ||
set(OpenCV_DIR "${CMAKE_CURRENT_LIST_DIR}/linux/lib/cmake/opencv4") | ||
endif () |