Skip to content

Commit

Permalink
Update VSCode configurations for macOS and Linux, adjusting include p…
Browse files Browse the repository at this point in the history
…aths and compiler settings
  • Loading branch information
dongzgh committed Jan 11, 2025
1 parent 4515dc4 commit c27a22b
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 47 deletions.
85 changes: 46 additions & 39 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -1,41 +1,48 @@
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**",
"C:/Qt/6.5.1/msvc2019_64/include/**"
],
"defines": [],
"compilerPath": "C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "msvc-x64"
},
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/**",
"/usr/local/opt/qt/include/**"
],
"defines": [],
"compilerPath": "/usr/bin/clang",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "macos-clang-x64"
},
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**",
"/opt/Qt/6.8.1/gcc_64/include/**"
],
"defines": [],
"compilerPath": "/usr/bin/g++",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "linux-gcc-x64"
}
],
"version": 4
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**",
"C:/Qt/6.5.1/msvc2019_64/include/**"
],
"defines": [],
"compilerPath": "C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "msvc-x64"
},
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/**",
"/opt/Qt/6.8.1/macos/include/**",
"/opt/Qt/6.8.1/macos/lib/QtCore.framework/Headers",
"/opt/Qt/6.8.1/macos/lib/QtGui.framework/Headers",
"/opt/Qt/6.8.1/macos/lib/QtWidgets.framework/Headers",
"/opt/Qt/6.8.1/macos/lib/QtSvg.framework/Headers"
],
"macFrameworkPath": [
"/opt/Qt/6.8.1/macos/lib"
],
"defines": [],
"compilerPath": "/usr/bin/clang++",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "macos-clang-x64"
},
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**",
"/opt/Qt/6.8.1/gcc_64/include/**"
],
"defines": [],
"compilerPath": "/usr/bin/g++",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "linux-gcc-x64"
}
],
"version": 4
}
10 changes: 3 additions & 7 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,16 @@
"program": "${workspaceFolder}/build/debug/bin/visflow.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"console": "externalTerminal"
"cwd": "${workspaceFolder}"
},
{
"name": "(Mac) Launch",
"type": "lldb",
"request": "launch",
"program": "${workspaceFolder}/build/debug/bin/visflow", // Adjust the path to your executable
"program": "${workspaceFolder}/build/debug/bin/visflow",
"args": [],
"cwd": "${workspaceFolder}",
"stopOnEntry": false,
"env": {},
"sourceLanguages": ["cpp"]
"cwd": "${workspaceFolder}"
},
{
"name": "(Linux) Launch",
Expand Down
2 changes: 1 addition & 1 deletion CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"hidden": true,
"name": "(macOS) Qt",
"cacheVariables": {
"CMAKE_PREFIX_PATH": "/usr/local/opt/qt"
"CMAKE_PREFIX_PATH": "/opt/Qt/6.8.1/macos"
}
},
{
Expand Down

0 comments on commit c27a22b

Please sign in to comment.