copy compile db to project folder
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,4 +1,4 @@
|
|||||||
**/build/
|
**/build/
|
||||||
**/.cache/
|
**/.cache/
|
||||||
|
compile_commands.json
|
||||||
|
|
||||||
|
|||||||
13
Chapter04/bare/.vscode/tasks.json
vendored
13
Chapter04/bare/.vscode/tasks.json
vendored
@@ -17,11 +17,22 @@
|
|||||||
"detail": "Generates build system files with CMake"
|
"detail": "Generates build system files with CMake"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "Build",
|
"label": "Copy Compile Db",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"dependsOn": [
|
"dependsOn": [
|
||||||
"Configure"
|
"Configure"
|
||||||
],
|
],
|
||||||
|
"command": "cp ${workspaceFolder}/build/compile_commands.json ${workspaceFolder}",
|
||||||
|
"group": "build",
|
||||||
|
"problemMatcher": [],
|
||||||
|
"detail": "Generates build system files with CMake"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Build",
|
||||||
|
"type": "shell",
|
||||||
|
"dependsOn": [
|
||||||
|
"Copy Compile Db"
|
||||||
|
],
|
||||||
"command": "make",
|
"command": "make",
|
||||||
"args": [
|
"args": [
|
||||||
"-C", "build"
|
"-C", "build"
|
||||||
|
|||||||
Reference in New Issue
Block a user