60 lines
1.2 KiB
JSON
60 lines
1.2 KiB
JSON
{
|
|
"version": 6,
|
|
"cmakeMinimumRequired": {
|
|
"major": 3,
|
|
"minor": 26,
|
|
"patch": 0
|
|
},
|
|
"configurePresets": [
|
|
{
|
|
"name": "base",
|
|
"hidden": true,
|
|
"generator": "Visual Studio 17 2022",
|
|
"binaryDir": "${sourceDir}/build/${presetName}",
|
|
"toolchainFile": "D:/vcpkg/scripts/buildsystems/vcpkg.cmake",
|
|
"cacheVariables": {
|
|
"CMAKE_CXX_STANDARD": "20",
|
|
"METACORE_BUILD_TESTS": "ON"
|
|
}
|
|
},
|
|
{
|
|
"name": "vs2022-debug",
|
|
"inherits": "base",
|
|
"displayName": "VS2022 Debug",
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "Debug"
|
|
}
|
|
},
|
|
{
|
|
"name": "vs2022-release",
|
|
"inherits": "base",
|
|
"displayName": "VS2022 Release",
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "Release"
|
|
}
|
|
}
|
|
],
|
|
"buildPresets": [
|
|
{
|
|
"name": "build-debug",
|
|
"configurePreset": "vs2022-debug",
|
|
"configuration": "Debug"
|
|
},
|
|
{
|
|
"name": "build-release",
|
|
"configurePreset": "vs2022-release",
|
|
"configuration": "Release"
|
|
}
|
|
],
|
|
"testPresets": [
|
|
{
|
|
"name": "test-debug",
|
|
"configurePreset": "vs2022-debug",
|
|
"configuration": "Debug",
|
|
"output": {
|
|
"outputOnFailure": true
|
|
}
|
|
}
|
|
]
|
|
}
|