1 Star 0 Fork 1

Yang123321/ncnn_demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 986 Bytes
一键复制 编辑 原始数据 按行查看 历史
Yang123321 提交于 2022-05-10 15:29 . add element packing to examples
cmake_minimum_required(VERSION 3.10)
project(ncnn_demo)
SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/bin)
if(DEFINED ARCH)
if(${ARCH} STREQUAL "x64")
set(ncnn_DIR "/home/mod/code/ncnn/ncnn/build/install/lib/cmake/ncnn")
elseif(${ARCH} STREQUAL "arm64")
set(ncnn_DIR "${CMAKE_SOURCE_DIR}/lib/ncnn/lib/cmake/ncnn")
set(OpenCV_DIR "${CMAKE_SOURCE_DIR}/lib/opencv-mobile-4.5.1-armlinux/aarch64-linux-gnu/lib/cmake/opencv4")
elseif(${ARCH} STREQUAL "android")
message(STATUS "build for android")
set(ncnn_DIR "/home/mod/code/DL/Tencent/ncnn/build-android-aarch64/install/lib/cmake/ncnn")
set(OpenCV_DIR "/home/mod/code/opencv/mobile/release/opencv-mobile-4.5.1-android/sdk/native/jni")
else()
message(FATAL_ERROR "no this ARCH")
endif()
else()
message(FATAL_ERROR "please set ARCH !!!")
endif()
find_package(OpenCV REQUIRED)
find_package(ncnn REQUIRED)
add_subdirectory(src)
add_subdirectory(benchmark)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/Yang123321/ncnn_demo.git
git@gitee.com:Yang123321/ncnn_demo.git
Yang123321
ncnn_demo
ncnn_demo
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385