CUDA程序的CMakeList文件编写
2018-07-27 本文已影响0人
hustliaohh
cmake_minimum_required(VERSION 3.9)
project(deviceQuery)
set(CMAKE_CXX_STANDARD 11)
find_package(CUDA QUIET REQUIRED)
#include_directories(/usr/local/cuda-9.0/include)
include_directories(/home/liaohh/NVIDIA_CUDA-9.0_Samples/common/inc)
#link_libraries(/usr/local/cuda-9.0/lib64)
link_libraries(/home/liaohh/NVIDIA_CUDA-9.0_Samples/common/lib)
#add_executable(deviceQuery deviceQuery.cpp)
cuda_add_executable(deviceQuery deviceQuery.cpp)