rev: set up cross compiling to develop in both linux and windows
This commit is contained in:
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user