vscode 插件 CMake Tools 配置工具链

vscode 插件 CMake Tools 配置工具链

cmake-tools-kits.json 工具链配置文件

[
  {// 自定义 gcc 
    "name": "GCC 7.3.1 arc-elf32",
    "compilers": {
      "C": "C:\\arc_gnu\\bin\\arc-elf32-gcc.exe",
      "CXX": "C:\\arc_gnu\\bin\\arc-elf32-g++.exe"
    }
  },
  {// 自定义  Qt mingw 编译工具
    "name":"mingw-11-gcc-x64",
    "compilers": {
      "C":"C:\\software\\Qt\\Tools\\mingw1120_64\\bin\\gcc.exe",
      "CXX":"C:\\software\\Qt\\Tools\\mingw1120_64\\bin\\g++.exe"
    } 
  },
  {
    "name": "Visual Studio Community 2022 Release - amd64",
    "visualStudio": "67be6cd4",
    "visualStudioArchitecture": "x64",
    "preferredGenerator": {
      "name": "Visual Studio 17 2022",
      "platform": "x64",
      "toolset": "host=x64"
    }
  },
  {
    "name": "Visual Studio Community 2022 Release - amd64_x86",
    "visualStudio": "67be6cd4",
    "visualStudioArchitecture": "x64",
    "preferredGenerator": {
      "name": "Visual Studio 17 2022",
      "platform": "win32",
      "toolset": "host=x64"
    }
  },
  {
    "name": "Visual Studio Community 2022 Release - x86",
    "visualStudio": "67be6cd4",
    "visualStudioArchitecture": "x86",
    "preferredGenerator": {
      "name": "Visual Studio 17 2022",
      "platform": "win32",
      "toolset": "host=x86"
    }
  },
  {
    "name": "Visual Studio Community 2022 Release - x86_amd64",
    "visualStudio": "67be6cd4",
    "visualStudioArchitecture": "x86",
    "preferredGenerator": {
      "name": "Visual Studio 17 2022",
      "platform": "x64",
      "toolset": "host=x86"
    }
  }
]

查看官网教程
https://github.com/microsoft/vscode-cmake-tools/blob/main/docs/kits.md

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值