-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
29 lines (22 loc) · 1.04 KB
/
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
cmake_minimum_required(VERSION 3.15)
project(miniball)
enable_language(CXX)
enable_language(CUDA)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CUDA_STANDARD 14)
add_executable(miniballTiming
timing_test.cu
dummy.cpp)
find_package(OpenMP)
target_link_libraries(miniballTiming OpenMP::OpenMP_CXX)
set_target_properties( miniballTiming PROPERTIES CUDA_SEPARABLE_COMPILATION ON)
target_compile_options(miniballTiming PRIVATE $<$<COMPILE_LANGUAGE:CUDA>:--expt-relaxed-constexpr>)
target_compile_options(miniballTiming PRIVATE $<$<COMPILE_LANGUAGE:CUDA>:-lineinfo>)
#target_compile_options(miniballTiming PRIVATE $<$<COMPILE_LANGUAGE:CUDA>:-G>)
#target_compile_options(miniballTiming PRIVATE $<$<COMPILE_LANGUAGE:CUDA>:-g>)
add_executable(miniballExample
example.cu
dummy.cpp)
set_target_properties( miniballExample PROPERTIES CUDA_SEPARABLE_COMPILATION ON)
target_compile_options(miniballExample PRIVATE $<$<COMPILE_LANGUAGE:CUDA>:--expt-relaxed-constexpr>)
target_compile_options(miniballExample PRIVATE $<$<COMPILE_LANGUAGE:CUDA>:-lineinfo>)