-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtasks.json
47 lines (47 loc) · 1.37 KB
/
tasks.json
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
39
40
41
42
43
44
45
46
47
{
"version": "2.0.0",
"presentation": {
"reveal": "always",
"panel": "shared",
"echo": true,
"focus": false,
"showReuseMessage": false
},
"tasks": [
{
"type": "shell",
"group": {
"kind": "build",
"isDefault": true
},
"options": {
"env": {
"LD_LIBRARY_PATH": "/usr/local/lib"
}
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared"
},
"label": "gtest_compile", /*任务名称,请按实际配置*/
"command": "mkdir build;source /etc/profile;cd build;cmake ..;cmake --build .", /*编译命令,相对路径,请按实际配置*/
"problemMatcher": {
"owner": "cpp",
"fileLocation": [
"relative",
"${workspaceRoot}"
],
"pattern": {
"regexp": "^([^:]*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
}
]
}