diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..46474b6 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,29 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "type": "cmake", + "label": "CMake: build", + "command": "build", + "targets": [ + "all" + ], + "preset": "${command:cmake.activeBuildPresetName}", + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": [], + "detail": "Build project using CMake Release preset" + }, + { + "type": "cmake", + "label": "CMake: flash", + "command": "build", + "preset": "flash", + "group": "none", + "problemMatcher": [], + "detail": "Flash firmware to microcontroller using CMake flash preset" + } + ] +} \ No newline at end of file diff --git a/CMakePresets.json b/CMakePresets.json index 3accd26..033ecd0 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -21,6 +21,14 @@ { "name": "Release", "configurePreset": "Release" + }, + { + "name": "flash", + "configurePreset": "Release", + "targets": [ + "flash" + ], + "description": "Build and flash firmware to AVR" } ] } \ No newline at end of file