2023-01-19 17:01:34 +08:00
|
|
|
{
|
|
|
|
"version": "2.0.0",
|
|
|
|
"tasks": [
|
2023-01-20 00:04:51 +08:00
|
|
|
{
|
|
|
|
"label": "CMake",
|
|
|
|
"detail": "Produce MakeFile",
|
2023-02-11 21:59:50 +08:00
|
|
|
"command": [
|
2023-01-20 00:04:51 +08:00
|
|
|
"cmake"
|
|
|
|
],
|
|
|
|
"type": "shell",
|
2023-02-11 21:59:50 +08:00
|
|
|
"args": [
|
|
|
|
".."
|
|
|
|
],
|
2023-01-20 00:04:51 +08:00
|
|
|
"options": {
|
2023-02-11 21:59:50 +08:00
|
|
|
"cwd": "${workspaceFolder}/build"
|
2023-01-20 00:04:51 +08:00
|
|
|
},
|
2023-02-11 21:59:50 +08:00
|
|
|
"group": "build"
|
2023-01-20 00:04:51 +08:00
|
|
|
},
|
2023-01-19 17:01:34 +08:00
|
|
|
{
|
|
|
|
"label": "Build",
|
|
|
|
"detail": "Build the program",
|
|
|
|
"command": "make",
|
|
|
|
"type": "shell",
|
|
|
|
"args": [],
|
|
|
|
"problemMatcher": [
|
|
|
|
"$gcc"
|
|
|
|
],
|
|
|
|
"presentation": {
|
|
|
|
"reveal": "always"
|
|
|
|
},
|
|
|
|
"options": {
|
2023-02-11 21:59:50 +08:00
|
|
|
"cwd": "${workspaceFolder}/build"
|
2023-01-19 17:01:34 +08:00
|
|
|
},
|
|
|
|
"group": "build"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "Run",
|
|
|
|
"detail": "Run Compiled Program",
|
2023-01-20 00:04:51 +08:00
|
|
|
"command": "./BasicTutorial",
|
2023-01-19 17:01:34 +08:00
|
|
|
"type": "shell",
|
|
|
|
"group": "build",
|
|
|
|
"options": {
|
2023-02-11 21:59:50 +08:00
|
|
|
"cwd": "${workspaceFolder}/build"
|
2023-01-19 17:01:34 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "Build & Run",
|
|
|
|
"detail": "Build program and run it",
|
2023-02-11 21:59:50 +08:00
|
|
|
"dependsOn": [
|
2023-01-19 17:01:34 +08:00
|
|
|
"Build",
|
2023-02-11 21:59:50 +08:00
|
|
|
"Run"
|
2023-01-19 17:01:34 +08:00
|
|
|
],
|
|
|
|
"dependsOrder": "sequence",
|
|
|
|
"group": "build"
|
|
|
|
},
|
|
|
|
]
|
|
|
|
}
|