Skip to content

Commit 4849aa0

Browse files
committed
Update vscode & CMake related points
1 parent 67537be commit 4849aa0

5 files changed

+30
-7
lines changed

.vscode/launch.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@
88
"name": "(Windows) Launch",
99
"type": "cppdbg",
1010
"request": "launch",
11-
"program": "${workspaceFolder}\\build\\LwLibPROJECT.exe",
11+
"program": "${command:cmake.buildDirectory}\\LwLibPROJECT.exe",
1212
"miDebuggerPath": "c:\\msys64\\mingw64\\bin\\gdb.exe",
1313
"args": [],
1414
"stopAtEntry": false,
1515
"cwd": "${fileDirname}",
16-
"environment": [],
17-
"console": "integratedTerminal"
16+
"environment": []
1817
}
1918
]
2019
}

.vscode/settings.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"files.associations": {
3+
"lwevt_types.h": "c",
4+
"lwevt_type.h": "c",
5+
"lwevt.h": "c",
6+
"string.h": "c",
7+
"lwevt_opt.h": "c"
8+
},
9+
"esbonio.sphinx.confDir": ""
10+
}

.vscode/tasks.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "cppbuild",
66
"label": "Build project",
77
"command": "cmake",
8-
"args": ["--build", "\"build\"", "-j", "8"],
8+
"args": ["--build", "${command:cmake.buildDirectory}", "-j", "8"],
99
"options": {
1010
"cwd": "${workspaceFolder}"
1111
},
@@ -19,7 +19,7 @@
1919
"type": "shell",
2020
"label": "Re-build project",
2121
"command": "cmake",
22-
"args": ["--build", "\"build\"", "--clean-first", "-v", "-j", "8"],
22+
"args": ["--build", "${command:cmake.buildDirectory}", "--clean-first", "-v", "-j", "8"],
2323
"options": {
2424
"cwd": "${workspaceFolder}"
2525
},
@@ -29,7 +29,7 @@
2929
"type": "shell",
3030
"label": "Clean project",
3131
"command": "cmake",
32-
"args": ["--build", "\"build\"", "--target", "clean"],
32+
"args": ["--build", "${command:cmake.buildDirectory}", "--target", "clean"],
3333
"options": {
3434
"cwd": "${workspaceFolder}"
3535
},
@@ -38,7 +38,7 @@
3838
{
3939
"type": "shell",
4040
"label": "Run application",
41-
"command": "${workspaceFolder}\\build\\LwLibPROJECT.exe",
41+
"command": "${command:cmake.buildDirectory}\\LwLibPROJECT.exe",
4242
"args": [],
4343
"problemMatcher": [],
4444
},

cmake/i686-w64-mingw32-gcc.cmake

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
set(CMAKE_SYSTEM_NAME Windows)
2+
3+
# Some default GCC settings
4+
set(CMAKE_C_COMPILER i686-w64-mingw32-gcc)
5+
set(CMAKE_CXX_COMPILER i686-w64-mingw32-g++)
6+
7+
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)

cmake/x86_64-w64-mingw32-gcc.cmake

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
set(CMAKE_SYSTEM_NAME Windows)
2+
3+
# Some default GCC settings
4+
set(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc)
5+
set(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++)
6+
7+
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)

0 commit comments

Comments
 (0)