From 3709d3d28485f84ef2502fb38cc93d23c1409606 Mon Sep 17 00:00:00 2001 From: JiXieShi Date: Sun, 15 Dec 2024 23:16:46 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(.vscode/tasks.json):=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20CMake=20=E9=85=8D=E7=BD=AE=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E4=BB=A5=E6=94=AF=E6=8C=81=E9=A1=B9=E7=9B=AE=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=92=8C=E6=9E=84=E5=BB=BA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/tasks.json | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 5560e54..c3199c9 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -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" } ] }