1 Star 0 Fork 0

luoyuming/AscendGaussianBlur

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 1.24 KB
一键复制 编辑 原始数据 按行查看 历史
luoyuming 提交于 2021-06-01 15:10 . v0.9
cmake_minimum_required(VERSION 3.5.1)
project(AscendGaussBlur)
add_compile_options(-std=c++11)
set(common_compile_definitions
_GLIBCXX_USE_CXX11_ABI=0
)
set(OpenCV_DIR /root/yolaw/opencv-ascend/lib64/cmake/opencv4)
find_package(OpenCV REQUIRED)
set(ASCEND_PATH /usr/local/Ascend/ascend-toolkit/latest)
INCLUDE_DIRECTORIES(
${OpenCV_INCLUDE_DIRS}
${ASCEND_PATH}/opp/op_proto/built-in/inc
${ASCEND_PATH}/fwkacllib/include/graph
${ASCEND_PATH}/fwkacllib/include/ge
${ASCEND_PATH}/fwkacllib/include/parser
${ASCEND_PATH}/fwkacllib/include/
)
add_executable(${PROJECT_NAME}
main.cpp
AscendGaussianBlur.cpp
ModelProcess.cpp
)
target_compile_definitions(${PROJECT_NAME} PRIVATE
${common_compile_definitions}
)
target_link_libraries(${PROJECT_NAME} PRIVATE
-Wl,--no-as-needed
${ASCEND_PATH}/fwkacllib/lib64/stub/libgraph.so
${ASCEND_PATH}/fwkacllib/lib64/stub/libge_runner.so
${ASCEND_PATH}/fwkacllib/lib64/stub/libfmk_parser.so
${ASCEND_PATH}/fwkacllib/lib64/stub/libascendcl.so
-Wl,--as-needed
${OpenCV_LIBS}
pthread dl -Wl,-z,relro,-z,now,-z,noexecstack -pie -s stdc++
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yukming_law/AscendGaussianBlur.git
git@gitee.com:yukming_law/AscendGaussianBlur.git
yukming_law
AscendGaussianBlur
AscendGaussianBlur
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385