COMPASSi/trunk/code/.vscode/tasks.json

73 lines
1.8 KiB
JSON

//Tasks in VS Code can be configured to run scripts and start processes .
{
"version": "2.0.0",
"options": {
"cwd": "${workspaceFolder}",
},
"tasks": [
{
"type": "shell",
"label": "cmake build debug",
"command": "",
"args": [
"cd",
"build",
";",
"cmake",
"..",
";",
"cmake",
"--build",
".",
"--config",
"Debug",
";"
],
"group": "build",
"problemMatcher": [],
"detail": "Build the Debug version"
},
{
"type": "shell",
"label": "cmake build release",
"command": "",
"args": [
"cd",
"build",
";",
"cmake",
"..",
";",
"cmake",
"--build",
".",
"--config",
"Release",
";"
],
"group": "build",
"problemMatcher": [],
"detail": "Build the Release version"
},
{
"type": "cppbuild",
"label": "C/C++: cl.exe 生成活动文件",
"command": "cl.exe",
"args": [
"/Zi",
"/EHsc",
"/nologo",
"/Fe${fileDirname}\\${fileBasenameNoExtension}.exe",
"${file}"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$msCompile"
],
"group": "build",
"detail": "编译器: cl.exe"
}
]
}