Merge pull request 'Chore: Add cmake configuration for vscode' (#3) from chore/vscode-cmake-configuration into master

Reviewed-on: https://gitlab-gepasp.in.tum.de/gra22s/team199/pulls/3
Reviewed-by: Thomas Florian <thomas.florian@tum.de>
This commit is contained in:
Thomas Florian 2022-06-29 11:25:51 +02:00
commit 807637d4ab
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