CMake: build for windows with vcpkg

This commit is contained in:
Jan Mrna
2025-10-16 09:33:24 +02:00
parent bc65b05854
commit f982c3b55f
2 changed files with 31 additions and 10 deletions

13
CMakePresets.json Normal file
View File

@@ -0,0 +1,13 @@
{
"version": 2,
"configurePresets": [
{
"name": "vcpkg",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
}
}
]
}