Adding tasks for building

This commit is contained in:
Vasily Markov 2024-04-01 15:29:08 +03:00
parent 2ac496daf4
commit dd2c218f7e

58
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,58 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "cmake",
"args": [
"--build",
"${workspaceFolder}/build"
],
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"dependsOn": [
"generate"
]
},
{
"label": "generate",
"type": "shell",
"command": "cmake",
"args": [
"-S",
".",
"-B",
"build"
],
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "clean",
"type": "shell",
"command": "rm",
"args": [
"-rf",
"${workspaceFolder}/build"
],
"options": {
"cwd": "${workspaceFolder}"
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
}