forked from adamantine-sim/adamantine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
45 lines (35 loc) · 1 KB
/
Copy pathCMakeLists.txt
File metadata and controls
45 lines (35 loc) · 1 KB
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
45
cmake_minimum_required(VERSION 3.13)
project(adamantine LANGUAGES CXX VERSION 0.1.0)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
include(Setupadamantine)
include(SetupTPLs)
DEAL_II_INITIALIZE_CACHED_VARIABLES()
if (ADAMANTINE_ENABLE_CUDA)
enable_language(CUDA)
endif()
add_subdirectory(application)
add_subdirectory(source)
option(ADAMANTINE_ENABLE_COVERAGE "Measure coverage" OFF)
if (ADAMANTINE_ENABLE_COVERAGE)
include(CodeCoverage)
endif()
option(ADAMANTINE_ENABLE_TESTS "Build tests" OFF)
if (ADAMANTINE_ENABLE_TESTS)
include(Testing)
enable_testing()
include(CTest)
add_subdirectory(tests)
add_test(NAME indent_code
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
COMMAND ./indent
)
endif()
# Provide "indent" target for indenting all the header and the source files.
add_custom_target(indent
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
COMMAND ./indent
)
if (ADAMANTINE_ENABLE_DOCUMENTATION)
add_subdirectory(doc)
endif()