-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathCMakePresets.json
152 lines (152 loc) · 3.92 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
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
144
145
146
147
148
149
150
151
152
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 18
},
"configurePresets": [
{
"name": "release",
"displayName": "Release Build",
"description": "Base preset for release builds",
"binaryDir": "${sourceDir}/build/release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_CXX_STANDARD": "17"
}
},
{
"name": "debug",
"displayName": "Debug Build",
"description": "Base preset for debug builds",
"binaryDir": "${sourceDir}/build/debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_STANDARD": "17"
}
},
{
"name": "default",
"inherits": "release",
"displayName": "Default Configuration",
"description": "Default build configuration",
"binaryDir": "${sourceDir}/build/default"
},
{
"name": "cuda",
"inherits": "release",
"displayName": "CUDA Enabled",
"description": "Build with CUDA support",
"binaryDir": "${sourceDir}/build/cuda",
"cacheVariables": {
"IPC_TOOLKIT_WITH_CUDA": "ON"
}
},
{
"name": "simd",
"inherits": "release",
"displayName": "SIMD Enabled",
"description": "Build with SIMD optimizations",
"binaryDir": "${sourceDir}/build/simd",
"cacheVariables": {
"IPC_TOOLKIT_WITH_SIMD": "ON"
}
},
{
"name": "test",
"inherits": "debug",
"displayName": "Build for Testing",
"description": "Build with unit tests enabled",
"binaryDir": "${sourceDir}/build/test",
"cacheVariables": {
"IPC_TOOLKIT_WITH_CUDA": "ON",
"IPC_TOOLKIT_BUILD_TESTS": "ON",
"IPC_TOOLKIT_BUILD_PYTHON": "OFF"
}
},
{
"name": "python",
"inherits": "release",
"displayName": "Python Bindings",
"description": "Build with Python bindings enabled",
"binaryDir": "${sourceDir}/build/python",
"cacheVariables": {
"IPC_TOOLKIT_BUILD_PYTHON": "ON",
"IPC_TOOLKIT_BUILD_TESTS": "OFF",
"IPC_TOOLKIT_WITH_SIMD": "OFF",
"IPC_TOOLKIT_WITH_CUDA": "OFF"
}
},
{
"name": "coverage",
"inherits": "debug",
"displayName": "Code Coverage",
"description": "Build for code coverage",
"binaryDir": "${sourceDir}/build/coverage",
"cacheVariables": {
"IPC_TOOLKIT_WITH_CODE_COVERAGE": "ON",
"IPC_TOOLKIT_BUILD_TESTS": "ON"
}
},
{
"name": "debug-cuda",
"inherits": [ "debug", "cuda" ],
"displayName": "CUDA Debug",
"description": "Debug build with CUDA support",
"binaryDir": "${sourceDir}/build/debug-cuda"
}
],
"buildPresets": [
{
"name": "default-build",
"configurePreset": "default",
"description": "Build using default configuration"
},
{
"name": "cuda-build",
"configurePreset": "cuda",
"description": "Build with CUDA support"
},
{
"name": "test-build",
"configurePreset": "test",
"description": "Build for running tests"
},
{
"name": "python-build",
"configurePreset": "python",
"description": "Build with Python bindings enabled"
},
{
"name": "debug-cuda-build",
"configurePreset": "debug-cuda",
"description": "Debug build with CUDA support"
}
],
"testPresets": [
{
"name": "default-tests",
"description": "Run default tests",
"configurePreset": "test",
"execution": {
"stopOnFailure": true
}
},
{
"name": "cuda-tests",
"description": "Run tests with CUDA enabled",
"configurePreset": "cuda",
"execution": {
"stopOnFailure": true
}
},
{
"name": "debug-cuda-tests",
"description": "Run tests with CUDA Debug configuration",
"configurePreset": "debug-cuda",
"execution": {
"stopOnFailure": true
}
}
]
}