rev: set up cross compiling to develop in both linux and windows

This commit is contained in:
2026-06-26 22:01:27 +01:00
parent 09064420b0
commit 24fec4db32
4 changed files with 72 additions and 10 deletions
+37
View File
@@ -0,0 +1,37 @@
{
"version": 6,
"configurePresets": [
{
"name": "linux",
"displayName": "Linux → Windows (MinGW)",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/bin",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/cmake/toolchains/mingw-w64.cmake"
}
},
{
"name": "windows",
"displayName": "Windows (MinGW)",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/bin",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
}
],
"buildPresets": [
{
"name": "linux",
"configurePreset": "linux"
},
{
"name": "windows",
"configurePreset": "windows"
}
]
}