-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCMakePresets.json
More file actions
143 lines (143 loc) · 3.66 KB
/
CMakePresets.json
File metadata and controls
143 lines (143 loc) · 3.66 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
{
"version": 3,
"configurePresets": [
{
"name": "default",
"displayName": "Default Config",
"description": "Default build configuration for pybFoam",
"generator": "Unix Makefiles",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_CXX_COMPILER": "g++",
"CMAKE_C_COMPILER": "gcc",
"CPM_SOURCE_CACHE": "$env{HOME}/.cache/CPM",
"CPM_USE_LOCAL_PACKAGES": "ON"
},
"condition": {
"type": "notEquals",
"lhs": "$env{FOAM_SRC}",
"rhs": ""
}
},
{
"name": "debug",
"displayName": "Debug Config",
"description": "Debug build configuration for pybFoam",
"inherits": "default",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_FLAGS": "-g -O0 -DDEBUG"
}
},
{
"name": "release",
"displayName": "Release Config",
"description": "Release build configuration for pybFoam",
"inherits": "default",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_CXX_FLAGS": "-O3 -DNDEBUG"
}
},
{
"name": "relwithdebinfo",
"displayName": "Release with Debug Info",
"description": "Release build with debug information for pybFoam",
"inherits": "default",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CMAKE_CXX_FLAGS": "-O2 -g"
}
},
{
"name": "ninja",
"displayName": "Ninja Build",
"description": "Fast build using Ninja generator",
"inherits": "default",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
}
},
{
"name": "clang",
"displayName": "Clang Build",
"description": "Build with Clang compiler",
"inherits": "default",
"cacheVariables": {
"CMAKE_CXX_COMPILER": "clang++",
"CMAKE_C_COMPILER": "clang"
}
},
{
"name": "offline",
"displayName": "Offline Build",
"description": "Build without downloading dependencies",
"inherits": "default",
"cacheVariables": {
"CPM_USE_LOCAL_PACKAGES": "ON",
"CPM_LOCAL_PACKAGES_ONLY": "ON"
}
},
{
"name": "no-cache",
"displayName": "No Cache Build",
"description": "Build without using CPM cache",
"inherits": "default",
"cacheVariables": {
"CPM_SOURCE_CACHE": ""
}
}
],
"buildPresets": [
{
"name": "default",
"configurePreset": "default",
"displayName": "Default Build",
"description": "Build with default settings"
},
{
"name": "debug",
"configurePreset": "debug",
"displayName": "Debug Build",
"description": "Build in debug mode"
},
{
"name": "release",
"configurePreset": "release",
"displayName": "Release Build",
"description": "Build in release mode"
},
{
"name": "ninja",
"configurePreset": "ninja",
"displayName": "Ninja Build",
"description": "Fast build using Ninja"
},
{
"name": "parallel",
"configurePreset": "default",
"displayName": "Parallel Build",
"description": "Build with maximum parallelism",
"jobs": 0
}
],
"testPresets": [
{
"name": "default",
"configurePreset": "default",
"displayName": "Default Test",
"description": "Run all tests"
},
{
"name": "verbose",
"configurePreset": "default",
"displayName": "Verbose Test",
"description": "Run tests with verbose output",
"output": {
"verbosity": "verbose"
}
}
]
}