-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
21 lines (16 loc) · 766 Bytes
/
CMakeLists.txt
File metadata and controls
21 lines (16 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
cmake_minimum_required (VERSION 2.6)
set ( CMAKE_CXX_STANDARD 11)
project ( microbe )
set ( CMAKE_CXX_STANDARD 11)
find_package( CUDA QUIET REQUIRED )
# LIST(APPEND CMAKE_CXX_FLAGS "-std=c++0x -O3 -ffast-math -Wall")
# set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-gencode arch=compute_61,code=sm_61)
# nvcc flags
SET(CUDA_SEPARABLE_COMPILATION ON)
include_directories ( ${PROJECT_SOURCE_DIR}/include )
file (GLOB SRC_FILES
${PROJECT_SOURCE_DIR}/include/*.h
${PROJECT_SOURCE_DIR}/src/*.cpp
${PROJECT_SOURCE_DIR}/src/*.cu
)
cuda_add_executable ( microbe main.cu ${SRC_FILES} )