-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathCMakeLists.txt
45 lines (34 loc) · 1.03 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
cmake_minimum_required(VERSION 3.15)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
# This needs to be called before project is called and before we setup the other
# TPL and adamantine
include(SetupDealII)
project(adamantine LANGUAGES CXX VERSION 1.0.9)
include(SetupTPLs)
include(SetupAdamantine)
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()