feat(.vscode/tasks.json): 添加 CMake 配置任务以支持项目配置和构建。

main
JiXieShi 2024-12-15 23:16:46 +08:00
parent 58ead967ff
commit 3709d3d284
1 changed files with 25 additions and 1 deletions

26
.vscode/tasks.json vendored
View File

@ -19,6 +19,30 @@
]
}
},
{
"label": "CMake Configure",
"type": "shell",
"command": "cmake",
"dependsOn": [
"Create Build Directories"
],
"args": [
"-S",
".",
"-B",
"build",
"-G",
"${input:cmakeGenerator}"
],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [
"$gcc"
],
"detail": "Configure the project using CMake."
},
{
"label": "CMake Build",
"type": "shell",
@ -61,7 +85,7 @@
"type": "promptString",
"id": "threadCount",
"description": "Number of parallel compilation threads",
"default": "16"
"default": "8"
}
]
}