diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..cfd6ff6 --- /dev/null +++ b/.vscode/tasks.json @@ -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 + } + } + ] +}