Chore: Add cmake configuration for vscode

This commit is contained in:
Dorian Zedler 2022-06-29 11:23:35 +02:00
parent 45c33e2acd
commit f1af95367d
Signed by: dorian
GPG key ID: 989DE36109AFA354
5 changed files with 40 additions and 9 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
build

View file

@ -1,5 +1,6 @@
{ {
"recommendations": [ "recommendations": [
"ms-vscode.cpptools" "ms-vscode.cpptools",
"twxs.cmake"
] ]
} }

13
.vscode/settings.json vendored
View file

@ -1,8 +1,9 @@
{ {
"C_Cpp.clang_format_fallbackStyle": "Google", "C_Cpp.clang_format_fallbackStyle": "Google",
"files.associations": { "files.associations": {
"functional": "c", "functional": "c",
"helper.h": "c" "helper.h": "c"
}, },
"editor.formatOnSave": true "editor.formatOnSave": true,
"cmake.sourceDirectory": "${workspaceFolder}/Implementierung"
} }

28
.vscode/tasks.json vendored Normal file
View file

@ -0,0 +1,28 @@
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: gcc build active file",
"command": "/usr/bin/gcc",
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Task generated by Debugger."
}
],
"version": "2.0.0"
}

View file

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.6.0) cmake_minimum_required(VERSION 3.0.0)
# here we specify that the project is C language only, so the default # here we specify that the project is C language only, so the default
# C compiler on the system will be used # C compiler on the system will be used