Add VSCode configuration files for debugging and building with CMake; refactor main.cpp to clean up includes
This commit is contained in:
parent
c3a8206e55
commit
840f236c60
3 changed files with 40 additions and 23 deletions
37
.vscode/tasks.json
vendored
37
.vscode/tasks.json
vendored
|
|
@ -1,17 +1,24 @@
|
|||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "CMake: Configure",
|
||||
"type": "shell",
|
||||
"command": "cmake -S . -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON",
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "CMake: Build",
|
||||
"type": "shell",
|
||||
"command": "cmake --build build -- -j",
|
||||
"problemMatcher": []
|
||||
}
|
||||
]
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "CMake: build",
|
||||
"type": "shell",
|
||||
"command": "/usr/bin/cmake",
|
||||
"args": [
|
||||
"--build",
|
||||
"${workspaceFolder}/build",
|
||||
"--config",
|
||||
"Debug",
|
||||
"--target",
|
||||
"${command:cmake.buildTargetName}"
|
||||
],
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
},
|
||||
"problemMatcher": "$gcc",
|
||||
"detail": "Builds the target currently selected in the CMake status bar"
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue