-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakePresets.json
88 lines (88 loc) · 2.66 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
{
"version": 3,
"cmakeMinimumRequired":{
"major": 3,
"minor": 24,
"patch": 0
},
"configurePresets": [
{
"name": "msvc",
"displayName": "MSVC",
"description": "Default build for MSVC",
"generator": "Visual Studio 17 2022",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_CXX_FLAGS": "/W4 /WX /MP /EHsc -DNOMINMAX",
"CMAKE_CXX_STANDARD": "20",
"RAD_BUILD_TESTS": "ON"
}
},
{
"name": "msvc-onnx",
"displayName": "MSVC ONNX",
"description": "Default build for MSVC using ONNXRuntime",
"inherits": "msvc",
"cacheVariables": {
"RAD_USE_ONNX": "ON"
}
},
{
"name": "msvc-onnx-dml",
"displayName": "MSVC ONNX + DML",
"description": "Default build for MSVC using ONNXRuntime with DML provider",
"inherits": "msvc",
"cacheVariables": {
"RAD_USE_ONNX": "ON",
"RAD_USE_ONNX_DML": "ON"
}
},
{
"name": "unix_base",
"hidden": true,
"generator": "Unix Makefiles",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_CXX_STANDARD": "20",
"CMAKE_CXX_FLAGS_DEBUG": "-g -O0 -DDEBUG",
"RAD_BUILD_TESTS": "ON"
}
},
{
"name": "gcc",
"displayName": "GCC",
"description": "Default build for GCC",
"inherits": "unix_base",
"cacheVariables": {
"CMAKE_CXX_FLAGS": "-Wall -Wextra -pedantic -Werror"
}
},
{
"name": "gcc-onnx",
"displayName": "GCC ONNX",
"description": "Default build for GCC using ONNXRuntime",
"inherits": "gcc",
"cacheVariables": {
"RAD_USE_ONNX": "ON"
}
},
{
"name": "clang",
"displayName": "Clang",
"description": "Default build for Clang",
"inherits": "unix_base",
"cacheVariables": {
"CMAKE_CXX_FLAGS": "-Wall -Wextra -pedantic -Werror -stdlib=libstdc++"
}
},
{
"name": "clang-onnx",
"displayName": "Clang ONNX",
"description": "Default build for Clang using ONNXRuntime",
"inherits": "clang",
"cacheVariables": {
"RAD_USE_ONNX": "ON"
}
}
]
}