mirror of
https://github.com/TheLartians/ModernCppStarter.git
synced 2025-08-30 21:51:12 +02:00
97 lines
2.1 KiB
JSON
97 lines
2.1 KiB
JSON
{
|
|
"version": 6,
|
|
"cmakeMinimumRequired": {
|
|
"major": 3,
|
|
"minor": 25,
|
|
"patch": 0
|
|
},
|
|
"configurePresets": [
|
|
{
|
|
"name": "default",
|
|
"displayName": "Default user Config",
|
|
"description": "Default build using Ninja generator",
|
|
"generator": "Ninja",
|
|
"binaryDir": "${sourceDir}/build/default",
|
|
"installDir": "${sourceDir}/stagedir",
|
|
"cacheVariables": {
|
|
"CMAKE_PREFIX_PATH": {
|
|
"type": "path",
|
|
"value": "${sourceDir}/stagedir"
|
|
},
|
|
"CMAKE_CXX_STANDARD": "20",
|
|
"CMAKE_BUILD_TYPE": "Release",
|
|
"CMAKE_DEBUG_POSTFIX": "D",
|
|
"BUILD_SHARED_LIBS": "YES"
|
|
},
|
|
"environment": {
|
|
"CPM_USE_LOCAL_PACKAGES": "NO",
|
|
"PATH": "$env{HOME}/.local/bin${pathListSep}$penv{PATH}"
|
|
},
|
|
"warnings": {
|
|
"deprecated": true,
|
|
"uninitialized": true
|
|
}
|
|
},
|
|
{
|
|
"name": "ninja-multi",
|
|
"inherits": "default",
|
|
"displayName": "Ninja Multi-Config",
|
|
"description": "Default build using Ninja Multi-Config generator",
|
|
"generator": "Ninja Multi-Config"
|
|
},
|
|
{
|
|
"name": "windows-only",
|
|
"inherits": "default",
|
|
"displayName": "Windows-only configuration",
|
|
"description": "This build is only available on Windows",
|
|
"condition": {
|
|
"type": "equals",
|
|
"lhs": "${hostSystemName}",
|
|
"rhs": "Windows"
|
|
}
|
|
}
|
|
],
|
|
"buildPresets": [
|
|
{
|
|
"name": "default",
|
|
"configurePreset": "default"
|
|
},
|
|
{
|
|
"name": "install",
|
|
"configurePreset": "default",
|
|
"targets": ["install"]
|
|
}
|
|
],
|
|
"packagePresets": [
|
|
{
|
|
"name": "default",
|
|
"configurePreset": "default",
|
|
"generators": [
|
|
"TGZ"
|
|
]
|
|
}
|
|
],
|
|
"workflowPresets": [
|
|
{
|
|
"name": "default",
|
|
"steps": [
|
|
{
|
|
"type": "configure",
|
|
"name": "default"
|
|
},
|
|
{
|
|
"type": "build",
|
|
"name": "default"
|
|
},
|
|
{
|
|
"type": "build",
|
|
"name": "install"
|
|
},
|
|
{
|
|
"type": "package",
|
|
"name": "default"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|