加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 746 Bytes
一键复制 编辑 原始数据 按行查看 历史
CMAKE_MINIMUM_REQUIRED(VERSION 3.1)
project(cuda_by_example)
#folder
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
#outpath
SET(EXECUTABLE_OUTPUT_PATH "${PROJECT_BINARY_DIR}/bin")
#Find OpenCV
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
link_directories(${OpenCV_LIBRARY_DIRS})
if(NOT OpenCV_FOUND)
message(ERROR " OpenCV not found!")
endif(NOT OpenCV_FOUND)
#CUDA
find_package(CUDA)
if (CUDA_FOUND)
add_subdirectory(appendix_a)
add_subdirectory(chapter03)
add_subdirectory(chapter04)
add_subdirectory(chapter05)
add_subdirectory(chapter06)
add_subdirectory(chapter07)
add_subdirectory(chapter08)
add_subdirectory(chapter09)
add_subdirectory(chapter10)
else()
message("CUDA not found!")
endif()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化