Skip to content

Commit

Permalink
Update C++ run config
Browse files Browse the repository at this point in the history
  • Loading branch information
HenningCash committed Mar 15, 2021
1 parent f03ef06 commit 29c1b20
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 10 deletions.
6 changes: 3 additions & 3 deletions templates/cpp/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"name": "Launch",
"type": "cppdbg",
"request": "launch",
"preLaunchTask": "Build and run project",
"program": "",
"preLaunchTask": "Build Project",
"program": "${workspaceFolder}/build/src/ExampleProject_run",
"cwd": "${workspaceFolder}",
}
]
}
}
27 changes: 20 additions & 7 deletions templates/cpp/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Build and run project",
"type": "shell",
"command": "cmake --build ${workspaceFolder}/build --config Debug --target ExampleProject_run -- -j 14 && ${workspaceFolder}/build/src/ExampleProject_run",
"group": "build"
}
{
"label": "Create build directory",
"type": "shell",
"command": "mkdir -p ${workspaceFolder}/build"
},
{
"label": "Run CMake",
"type": "shell",
"dependsOn": "Create build directory",
"command": "cmake -B ${workspaceFolder}/build",
"group": "build"
},
{
"label": "Build Project",
"type": "shell",
"dependsOn": "Run CMake",
"command": "cmake --build ${workspaceFolder}/build --config Debug --target ExampleProject_run",
"group": "build"
}
]
}
}

0 comments on commit 29c1b20

Please sign in to comment.