vscode
${workspaceFolder}/.vscode/settings.json
ninja
"cmake.configureSettings": {
"CMAKE_MAKE_PROGRAM": "${env:VCPKG_DIR}/downloads/tools/ninja/1.10.0-windows/ninja.exe"
},
"cmake.generator": "Ninja",
with vcpkg
"cmake.configureSettings": {
"CMAKE_TOOLCHAIN_FILE": "${env:VCPKG_DIR}/scripts/buildsystems/vcpkg.cmake",
},
"cmake.configureArgs": [
"-DCMAKE_PREFIX_PATH=${env:VCPKG_DIR}/installed/x64-windows"
]
toolkit
-
%USERPROFILE%\AppData\Local\CMakeTools\cmake-tools-kits.json
-
~/.local/share/CMakeTools/cmake-tools-kits.json
cland
"cmake.generator": "Ninja",
"cmake.configureArgs": [
"-DCMAKE_EXPORT_COMPILE_COMMANDS=1",
],
formatter
https://marketplace.visualstudio.com/items?itemName=cheshirekow.cmake-format
> pip install cmake-format
"cmakeFormat.exePath": "C:/Python38/Scripts/cmake-format.exe"