Chore: Add cmake configuration for vscode
This commit is contained in:
parent
45c33e2acd
commit
f1af95367d
5 changed files with 40 additions and 9 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
build
|
3
.vscode/extensions.json
vendored
3
.vscode/extensions.json
vendored
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"ms-vscode.cpptools"
|
"ms-vscode.cpptools",
|
||||||
|
"twxs.cmake"
|
||||||
]
|
]
|
||||||
}
|
}
|
15
.vscode/settings.json
vendored
15
.vscode/settings.json
vendored
|
@ -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
28
.vscode/tasks.json
vendored
Normal 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"
|
||||||
|
}
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue