{ "version": "2.0.0", "tasks": [ { "label": "configure", "type": "shell", "command": "cmake", "args": [ "-G", "Ninja", "-B", "${workspaceFolder}/mwe/ecs-memory-efficient/build", // Create build folder here "${workspaceFolder}/mwe/ecs-memory-efficient" // Path to your source directory ], "group": { "kind": "build", "isDefault": false }, "problemMatcher": [] }, { "label": "build", "type": "shell", "command": "cmake", "args": [ "--build", "${workspaceFolder}/mwe/ecs-memory-efficient/build" // Build directory ], "dependsOn": "configure", // Ensure the configure task runs first "group": { "kind": "build", "isDefault": true }, "problemMatcher": ["$gcc"], "detail": "Generated task for building the project." } ] }