aboutsummaryrefslogtreecommitdiff
path: root/.vscode/tasks.json
blob: 19afa6f8cbea1f6207021c1962a90c5a5ee1256f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "configure",
            "type": "shell",
            "command": "cmake",
            "args": [
                "-G",
                "Ninja",
                "-B",
                "${workspaceFolder}/mwe/ecs-homemade/build",  // Create build folder here
                "${workspaceFolder}/mwe/ecs-homemade"  // Path to your source directory
            ],
            "group": {
                "kind": "build",
                "isDefault": false
            },
            "problemMatcher": []
        },
        {
            "label": "build",
            "type": "shell",
            "command": "cmake",
            "args": [
                "--build",
                "${workspaceFolder}/mwe/ecs-homemade/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."
        }
    ]
}