copy compile db to project folder

This commit is contained in:
Amar Mahmutbegovic
2024-04-28 16:53:59 +02:00
parent ac07a71a10
commit ca8153fdc8
2 changed files with 13 additions and 2 deletions

2
.gitignore vendored
View File

@@ -1,4 +1,4 @@
**/build/ **/build/
**/.cache/ **/.cache/
compile_commands.json

View File

@@ -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"