forked from tukl-msd/DRAMSys
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakePresets.json
More file actions
122 lines (122 loc) · 2.72 KB
/
Copy pathCMakePresets.json
File metadata and controls
122 lines (122 loc) · 2.72 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 25,
"patch": 0
},
"configurePresets": [
{
"name": "cpp-standard",
"hidden": true,
"cacheVariables": {
"CMAKE_CXX_STANDARD": "17",
"CMAKE_CXX_STANDARD_REQUIRED": "ON",
"CMAKE_CXX_EXTENSIONS": "OFF"
}
},
{
"name": "vcpkg",
"hidden": true,
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"cacheVariables": {
"VCPKG_INSTALL_OPTIONS": "--no-print-usage"
}
},
{
"name": "dev",
"binaryDir": "${sourceDir}/build",
"inherits": [
"cpp-standard"
],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_FLAGS": "-Wall -Wextra -Wpedantic -fdiagnostics-color=always",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"DRAMSYS_BUILD_TESTS": "ON",
"DRAMSYS_BUILD_BENCHMARKS": "ON",
"DRAMSYS_BUILD_TRACE_ANALYZER": "ON"
}
},
{
"name": "dev-local",
"inherits": [
"dev"
],
"cacheVariables": {
"DRAMSYS_USE_FETCH_CONTENT": "OFF"
}
},
{
"name": "dev-vcpkg",
"inherits": [
"dev",
"vcpkg"
],
"cacheVariables": {
"DRAMSYS_USE_FETCH_CONTENT": "ON",
"DRAMSYS_USE_FETCH_CONTENT_INTERNAL": "ON",
"DRAMSYS_USE_FETCH_CONTENT_SYSTEMC": "OFF",
"DRAMSYS_USE_FETCH_CONTENT_SQLITE3": "OFF",
"DRAMSYS_USE_FETCH_CONTENT_NLOHMANN_JSON": "OFF"
}
},
{
"name": "coverage",
"binaryDir": "${sourceDir}/build/coverage",
"inherits": [
"cpp-standard",
"dev"
],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Coverage",
"CMAKE_CXX_FLAGS_COVERAGE": "-Og -g --coverage -fkeep-static-functions",
"CMAKE_EXE_LINKER_FLAGS_COVERAGE": "--coverage",
"CMAKE_SHARED_LINKER_FLAGS_COVERAGE": "--coverage",
"DRAMSYS_ENABLE_COVERAGE": "ON"
}
}
],
"buildPresets": [
{
"name": "build-dev",
"configurePreset": "dev",
"jobs": 0,
"targets": [
"all"
]
},
{
"name": "build-coverage",
"configurePreset": "coverage",
"jobs": 0,
"targets": [
"all"
]
}
],
"testPresets": [
{
"name": "test-dev",
"configurePreset": "dev",
"configuration": "Debug",
"execution": {
"jobs": 0
},
"output": {
"outputOnFailure": true
}
},
{
"name": "test-coverage",
"configurePreset": "coverage",
"configuration": "Coverage",
"execution": {
"jobs": 0
},
"output": {
"outputOnFailure": true
}
}
]
}