✨ feat(.vscode/tasks.json): 添加 CMake 配置任务以支持项目配置和构建。
parent
58ead967ff
commit
3709d3d284
|
@ -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",
|
"label": "CMake Build",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
|
@ -61,7 +85,7 @@
|
||||||
"type": "promptString",
|
"type": "promptString",
|
||||||
"id": "threadCount",
|
"id": "threadCount",
|
||||||
"description": "Number of parallel compilation threads",
|
"description": "Number of parallel compilation threads",
|
||||||
"default": "16"
|
"default": "8"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue