Add Visual Studio Code CMake configuration to get ccompile-time definition detection working

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2024-05-20 10:31:06 +02:00
parent bfbe309b42
commit c957f78209
2 changed files with 20 additions and 3 deletions

5
.gitignore vendored
View File

@@ -14,9 +14,8 @@ version~
# IDE files
.idea/
*.sw*
/.vscode
.vscode/
/.vscode/
.vscode/*
!.vscode/c_cpp_properties.json
/build/
# __pycache__ files (API tests)

18
.vscode/c_cpp_properties.json vendored Normal file
View File

@@ -0,0 +1,18 @@
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/src/**"
],
"compileCommands": "${workspaceFolder}/build/compile_commands.json",
"defines": [],
"compilerPath": "/usr/bin/gcc",
"cStandard": "gnu17",
"cppStandard": "gnu++17",
"intelliSenseMode": "linux-gcc-x64",
"configurationProvider": "ms-vscode.cmake-tools"
}
],
"version": 4
}