-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathCMakeLists.txt
44 lines (33 loc) · 885 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Create input/output folders
file(MAKE_DIRECTORY input)
file(MAKE_DIRECTORY output)
file(MAKE_DIRECTORY img_out)
file(MAKE_DIRECTORY gnuplot/data)
# The name of the project.
project(sphere_CUDA)
# CMake minimum version required
# FindCUDA script is distributed since version 2.8
cmake_minimum_required(VERSION 2.8)
# Find CUDA
find_package(CUDA REQUIRED)
# Set CUDA GPU generation
# 0: Fermi
# 1: Kepler
set(GPU_GENERATION 1)
# Find OpenMP
find_package(OpenMP)
# Find Boost components
#find_package(Boost COMPONENTS system filesystem unit_test_framework REQUIRED)
# Uncomment to enable testing
enable_testing()
# Set build type = Debug
#set(CMAKE_BUILD_TYPE Debug)
#if (CUDA_FOUND)
# set(CUDA_NVCC_FLAGS -g;-G)
#endif()
# Set build type = Release
set(CMAKE_BUILD_TYPE Release)
# Add source directory to project.
add_subdirectory(src)
# Add tests
add_subdirectory(tests)