Add cmake presets
- MSVC requires cmake for Windows - mingw only builds when GLSLANG is excluded due to wrong header generation
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"version": 10,
|
||||
"configurePresets": [
|
||||
{
|
||||
"name": "switch-debug",
|
||||
"generator": "Ninja",
|
||||
"displayName": "Nintendo Switch",
|
||||
"binaryDir": "${sourceDir}/build/switch-debug",
|
||||
"toolchainFile": "/opt/devkitPro/cmake/Switch.cmake",
|
||||
"cacheVariables": {
|
||||
"CMAKE_BUILD_TYPE": "Debug",
|
||||
"SPV_EXCLUDE_GLSLANG": "ON"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "switch-release",
|
||||
"generator": "Ninja",
|
||||
"displayName": "Nintendo Switch",
|
||||
"binaryDir": "${sourceDir}/build/switch-release",
|
||||
"toolchainFile": "/opt/devkitPro/cmake/Switch.cmake",
|
||||
"cacheVariables": {
|
||||
"CMAKE_BUILD_TYPE": "Release",
|
||||
"SPV_EXCLUDE_GLSLANG": "ON"
|
||||
}
|
||||
}
|
||||
],
|
||||
"buildPresets": [
|
||||
{
|
||||
"name": "switch-release",
|
||||
"configurePreset": "switch-release"
|
||||
},
|
||||
{
|
||||
"name": "switch-debug",
|
||||
"configurePreset": "switch-debug"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user