-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakePresets.json
42 lines (42 loc) · 1.12 KB
/
CMakePresets.json
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
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 22,
"patch": 0
},
"configurePresets": [
{
"name": "tests-with-coverage",
"displayName": "Code coverage (GCC)",
"description": "Enable code coverage on GCC-compatible compilers",
"binaryDir": "${sourceDir}/build-tests",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CMAKE_CXX_FLAGS": "-fprofile-arcs -ftest-coverage -Ofast -DEIGEN_NO_DEBUG -fno-math-errno -ffast-math"
}
},
{
"name": "build-release",
"displayName": "Release",
"description": "Build the full project in Release",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_CXX_FLAGS": "-Ofast -DEIGEN_NO_DEBUG -fno-math-errno -ffast-math"
}
}
],
"buildPresets": [
{
"name": "tests-with-coverage",
"configurePreset": "tests-with-coverage",
"configuration": "RelWithDebInfo"
},
{
"name": "build-release",
"configurePreset": "build-release",
"configuration": "Release"
}
]
}