✨ feat(.vscode/tasks.json): 添加 CMake 配置任务以支持项目配置和构建。
This commit is contained in:
Vendored
+25
-1
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user