Update vscode & CMake related points

This commit is contained in:
Tilen Majerle 2022-05-18 20:37:13 +02:00
parent 67537be39f
commit 4849aa0c23
5 changed files with 30 additions and 7 deletions

5
.vscode/launch.json vendored
View File

@ -8,13 +8,12 @@
"name": "(Windows) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}\\build\\LwLibPROJECT.exe",
"program": "${command:cmake.buildDirectory}\\LwLibPROJECT.exe",
"miDebuggerPath": "c:\\msys64\\mingw64\\bin\\gdb.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"console": "integratedTerminal"
"environment": []
}
]
}

10
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,10 @@
{
"files.associations": {
"lwevt_types.h": "c",
"lwevt_type.h": "c",
"lwevt.h": "c",
"string.h": "c",
"lwevt_opt.h": "c"
},
"esbonio.sphinx.confDir": ""
}

8
.vscode/tasks.json vendored
View File

@ -5,7 +5,7 @@
"type": "cppbuild",
"label": "Build project",
"command": "cmake",
"args": ["--build", "\"build\"", "-j", "8"],
"args": ["--build", "${command:cmake.buildDirectory}", "-j", "8"],
"options": {
"cwd": "${workspaceFolder}"
},
@ -19,7 +19,7 @@
"type": "shell",
"label": "Re-build project",
"command": "cmake",
"args": ["--build", "\"build\"", "--clean-first", "-v", "-j", "8"],
"args": ["--build", "${command:cmake.buildDirectory}", "--clean-first", "-v", "-j", "8"],
"options": {
"cwd": "${workspaceFolder}"
},
@ -29,7 +29,7 @@
"type": "shell",
"label": "Clean project",
"command": "cmake",
"args": ["--build", "\"build\"", "--target", "clean"],
"args": ["--build", "${command:cmake.buildDirectory}", "--target", "clean"],
"options": {
"cwd": "${workspaceFolder}"
},
@ -38,7 +38,7 @@
{
"type": "shell",
"label": "Run application",
"command": "${workspaceFolder}\\build\\LwLibPROJECT.exe",
"command": "${command:cmake.buildDirectory}\\LwLibPROJECT.exe",
"args": [],
"problemMatcher": [],
},

View File

@ -0,0 +1,7 @@
set(CMAKE_SYSTEM_NAME Windows)
# Some default GCC settings
set(CMAKE_C_COMPILER i686-w64-mingw32-gcc)
set(CMAKE_CXX_COMPILER i686-w64-mingw32-g++)
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)

View File

@ -0,0 +1,7 @@
set(CMAKE_SYSTEM_NAME Windows)
# Some default GCC settings
set(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc)
set(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++)
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)