73 lines
2.2 KiB
JSON
73 lines
2.2 KiB
JSON
{
|
|
"version": 6,
|
|
"cmakeMinimumRequired": {
|
|
"major": 3,
|
|
"minor": 28,
|
|
"patch": 0
|
|
},
|
|
"configurePresets": [
|
|
{
|
|
"name": "linux",
|
|
"displayName": "Linux (Make, desktop)",
|
|
"condition": {
|
|
"type": "equals",
|
|
"lhs": "${hostSystemName}",
|
|
"rhs": "Linux"
|
|
},
|
|
"generator": "Unix Makefiles",
|
|
"binaryDir": "${sourceDir}/build-desktop",
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
|
|
"FLUIDSIM_BUILD_DESKTOP": "ON",
|
|
"BUILD_TESTING": "ON"
|
|
}
|
|
},
|
|
{
|
|
"name": "windows",
|
|
"displayName": "Windows x64 (standalone GCC, desktop)",
|
|
"condition": {
|
|
"type": "equals",
|
|
"lhs": "${hostSystemName}",
|
|
"rhs": "Windows"
|
|
},
|
|
"generator": "Ninja",
|
|
"binaryDir": "${sourceDir}/out/build/windows-gcc",
|
|
"environment": {
|
|
"PATH": "$penv{LOCALAPPDATA}/FluidSimTools/mingw64/bin;$penv{PATH}"
|
|
},
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
|
|
"CMAKE_C_COMPILER": "$penv{LOCALAPPDATA}/FluidSimTools/mingw64/bin/gcc.exe",
|
|
"CMAKE_CXX_COMPILER": "$penv{LOCALAPPDATA}/FluidSimTools/mingw64/bin/g++.exe",
|
|
"CMAKE_MAKE_PROGRAM": "$penv{LOCALAPPDATA}/FluidSimTools/mingw64/bin/ninja.exe",
|
|
"FLUIDSIM_BUILD_DESKTOP": "ON",
|
|
"BUILD_TESTING": "ON"
|
|
}
|
|
}
|
|
],
|
|
"buildPresets": [
|
|
{
|
|
"name": "linux",
|
|
"configurePreset": "linux",
|
|
"jobs": 8
|
|
},
|
|
{
|
|
"name": "windows",
|
|
"configurePreset": "windows",
|
|
"jobs": 8
|
|
}
|
|
],
|
|
"testPresets": [
|
|
{
|
|
"name": "linux",
|
|
"configurePreset": "linux",
|
|
"output": { "outputOnFailure": true }
|
|
},
|
|
{
|
|
"name": "windows",
|
|
"configurePreset": "windows",
|
|
"output": { "outputOnFailure": true }
|
|
}
|
|
]
|
|
}
|