summaryrefslogtreecommitdiff
path: root/julia/CMakeLists.txt
blob: e5428fb0ae34f8a95bf655f332960f428d7d299d (plain)
1
2
3
4
5
6
7
8
9
10
11
cmake_minimum_required(VERSION 3.28)

project(cuda_julia LANGUAGES CUDA CXX)

add_executable(cuda_julia
  julia.cu)

# -Wpedantic causes warnings due to nvcc emitting non-standard (gcc-specific)
# host code.
# https://stackoverflow.com/questions/31000996/warning-when-compiling-cu-with-wpedantic-style-of-line-directive-is-a-gcc-ex
target_compile_options(cuda_julia PRIVATE -Wall -Wextra -Wno-pedantic)