VSCODE集成cmake的配置
#当然,你可以使用cmake tool非常轻松自动生成,需要的可以私信
VSCODE配置
tasks.json配置示例
{
"version": "2.0.0",
"tasks": [
// task1
{
"label": "cmake",
"options": {
"cwd": "${workspaceFolder}/build"
},
"type": "shell",
"command": "cmake -G 'MinGW Makefiles' -DCMAKE_BUILD_TYPE=Debug .. ",
},
// task2
{
"label": "make",
"options": {
"cwd": "${workspaceFolder}/build"
},
"type": "shell",
"command": "mingw32-make -j8",
"dependsOn": [
"cmake"
],
},