-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathCMakePresets.json
55 lines (55 loc) · 2.02 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
{
"version": 2,
"configurePresets": [
{
"name": "ninja-debug-vs2022",
"displayName": "Ninja Debug VS2022",
"description": "Targets the clang distribution that ships with VS2022 on Windows. Use with the \"x64 Native Tools Command Prompt for VS 2022\".",
"generator": "Ninja",
"binaryDir": "${sourceDir}/out/build/ninja-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
"CMAKE_EXPORT_COMPILE_COMMANDS": "1",
"CMAKE_C_COMPILER": "$env{VSINSTALLDIR}VC/Tools/Llvm/x64/bin/clang-cl.exe",
"CMAKE_CXX_COMPILER": "$env{VSINSTALLDIR}VC/Tools/Llvm/x64/bin/clang-cl.exe",
"CMAKE_CXX_LINKER": "$env{VSINSTALLDIR}VC/Tools/Llvm/x64/bin/lld-link.exe"
}
},
{
"name": "ninja-debug-clang",
"displayName": "Ninja Debug",
"description": "Generic preset that targets clang.",
"generator": "Ninja",
"binaryDir": "${sourceDir}/out/build/ninja-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
"CMAKE_EXPORT_COMPILE_COMMANDS": "1",
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++",
"CMAKE_CXX_LINKER": "ld"
}
}
],
"buildPresets": [
{
"name": "Aiks Debug VS2022",
"description": "",
"displayName": "",
"configurePreset": "ninja-debug-vs2022",
"targets": [
"impeller_aiks"
]
},
{
"name": "Aiks Debug",
"description": "",
"displayName": "",
"configurePreset": "ninja-debug-clang",
"targets": [
"impeller_aiks"
]
}
]
}