repo: 用于 Windows 中使用 VSCode 构建 Notepad-- 的工作区配置模板

This commit is contained in:
zinface 2023-02-26 19:56:29 +08:00
parent cf0ca0504f
commit 60b2c4eafb
2 changed files with 42 additions and 0 deletions

14
cmake/vscode/README.md Normal file
View File

@ -0,0 +1,14 @@
# 此处提供 vscode 工作区配置模板
> 根据提供的有限配置模板、进行修改可完成在 VSCode 中构建 Notepad-- 的工作
- windows-vs-2022-cmake-ninja.json
> 基于 Vistual Studio 2022 生成器安装的 CMake 组件
- 适用工具链:
1. `Visual Studio 生成工具 2022 Release - amd64`
2. `Visual Studio Community 2022 Release - amd64`
3. ...
- 注意:
1. 工具链架构选择可能与 `msvc2017`、`msvc2017_64` 等路径有关

View File

@ -0,0 +1,28 @@
{
// 使 Visual Studio Community CMake
"cmake.cmakePath": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin\\cmake.exe",
// Nijia
"cmake.generator": "Ninja",
// CMake
"cmake.configureArgs": [
// CMake 使 CMake
"-DCMAKE_MAKE_PROGRAM='C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\Ninja\\ninja.exe'",
// CMake MSVC Qt
"-DCMAKE_PREFIX_PATH=C:\\Qt\\Qt5.14.2\\5.14.2\\msvc2017_64",
// 使 Windows
"-DUSE_WINDOWS_UNIVERSAL=ON",
// 使 Qt5 windeployqt
"-DWINDOWS_DEPLOY_QT=ON",
"-DWINDOWS_DEPLOY_QT5=ON",
],
// CMake
"cmake.buildArgs": [
"-j20"
],
//
"cmake.buildToolArgs": [
]
}