mirror of
https://github.com/momo5502/hypervisor.git
synced 2025-07-05 02:31:51 +00:00
Add cmake presets
This commit is contained in:
53
CMakePresets.json
Normal file
53
CMakePresets.json
Normal file
@ -0,0 +1,53 @@
|
||||
|
||||
{
|
||||
"version": 2,
|
||||
"cmakeMinimumRequired": {
|
||||
"major": 3,
|
||||
"minor": 20,
|
||||
"patch": 0
|
||||
},
|
||||
"configurePresets": [{
|
||||
"name": "release",
|
||||
"displayName": "Default Release Config",
|
||||
"description": "Release build using Ninja generator",
|
||||
"generator": "Ninja",
|
||||
"binaryDir": "${sourceDir}/build/default",
|
||||
"cacheVariables": {
|
||||
"CMAKE_BUILD_TYPE": "Release"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "debug",
|
||||
"displayName": "Default Debug Config",
|
||||
"description": "Debug build using Ninja generator",
|
||||
"generator": "Ninja",
|
||||
"binaryDir": "${sourceDir}/build/debug",
|
||||
"cacheVariables": {
|
||||
"CMAKE_BUILD_TYPE": "Debug"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "vs2019",
|
||||
"displayName": "Visual Studio 2019",
|
||||
"description": "Visual Studio 2019 on Windows",
|
||||
"generator": "Visual Studio 16 2019",
|
||||
"binaryDir": "${sourceDir}/build/vs2019"
|
||||
},
|
||||
{
|
||||
"name": "vs2022",
|
||||
"displayName": "Visual Studio 2022",
|
||||
"description": "Visual Studio 2022 on Windows",
|
||||
"generator": "Visual Studio 17 2022",
|
||||
"binaryDir": "${sourceDir}/build/vs2022"
|
||||
}
|
||||
],
|
||||
"buildPresets": [{
|
||||
"name": "release",
|
||||
"configurePreset": "release"
|
||||
},
|
||||
{
|
||||
"name": "debug",
|
||||
"configurePreset": "debug"
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user