-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
27 lines (21 loc) · 683 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
cmake_minimum_required(VERSION 3.17.0 FATAL_ERROR)
project(ExwVirtuals CXX)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE INTERNAL
"Create compile commands database")
option(EXAWIND_USE_EXTERNAL_KOKKOS "Use external Kokkos installation" OFF)
option(EXAWIND_TEST_VIRTUALS "Activate testing virtual device functions" ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
include(FetchContent)
FetchContent_Declare(
kokkos
GIT_REPOSITORY https://github.com/kokkos/kokkos
GIT_TAG develop
)
if (EXAWIND_USE_EXTERNAL_KOKKOS)
find_package(Kokkos REQUIRED)
else()
FetchContent_MakeAvailable(kokkos)
endif()
add_executable(exw_virtuals)
add_subdirectory(src)