Last active
June 27, 2018 20:05
-
-
Save senapk/b736f2c1e44c47aae6c82e42cde716ae to your computer and use it in GitHub Desktop.
Task para rodar c++ no visual studio code utilizando um makefile externo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "Run tests", | |
"type": "shell", | |
"command": "./main", | |
"windows": { | |
"command": ".\\scripts\\test.cmd" | |
}, | |
"group": { | |
"kind": "test", | |
"isDefault": true | |
}, | |
"presentation": { | |
"reveal": "always", | |
"panel": "new" | |
} | |
}, | |
{ | |
"type": "shell", | |
"command": "make", | |
"label": "Makefile", | |
// Make this the default build command. | |
"group": { | |
"kind": "build", | |
"isDefault": true | |
}, | |
// Show the output window only if unrecognized errors occur. | |
"presentation": { | |
"reveal": "always", | |
"panel": "new" | |
}, | |
// No args | |
"args": ["all"], | |
// Use the standard less compilation problem matcher. | |
"problemMatcher": { | |
"owner": "cpp", | |
"fileLocation": ["relative", "${workspaceRoot}"], | |
"pattern": { | |
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$", | |
"file": 1, | |
"line": 2, | |
"column": 3, | |
"severity": 4, | |
"message": 5 | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment