Skip to content

Instantly share code, notes, and snippets.

@sourencho
Created November 5, 2019 17:17
Show Gist options
  • Save sourencho/46d3f5282de7fd7ecaf681384fc8e4dc to your computer and use it in GitHub Desktop.
Save sourencho/46d3f5282de7fd7ecaf681384fc8e4dc to your computer and use it in GitHub Desktop.
{
"version": "2.0.0",
"tasks": [
{
"label": "clean",
"type": "shell",
"options": {
"cwd": "${workspaceRoot}"
},
"command": "rm -rf build",
"problemMatcher": []
},
{
"label": "dir",
"type": "shell",
"options": {
"cwd": "${workspaceRoot}"
},
"command": "mkdir -p build",
"problemMatcher": []
},
{
"label": "cmake_debug",
"type": "shell",
"options": {
"cwd": "${workspaceRoot}/build"
},
"command": "cmake",
"args": [
"-DCMAKE_BUILD_TYPE=Debug",
"${workspaceRoot}"
],
"dependsOn": [
"dir"
],
"problemMatcher": []
},
{
"label": "make_debug",
"type": "shell",
"options": {
"cwd": "${workspaceRoot}/build"
},
"command": "make -j VERBOSE=1",
"dependsOn": [
"cmake_debug"
]
},
{
"label": "build_debug",
"type": "shell",
"options": {
"cwd": "${workspaceRoot}/build"
},
"group": {
"kind": "build",
"isDefault": true
},
"dependsOn": [
"make_debug"
],
"problemMatcher": [
"$gcc"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment