box3d/CMakePresets.json

69 lines
2.7 KiB
JSON
Raw Normal View History

{
"version": 3,
"cmakeMinimumRequired": { "major": 3, "minor": 21, "patch": 0 },
"configurePresets": [
{
"name": "windows",
"displayName": "Windows (default Visual Studio)",
"condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Windows" },
"binaryDir": "${sourceDir}/build"
},
{
"name": "linux-debug",
"displayName": "Linux Debug",
"condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Linux" },
"binaryDir": "${sourceDir}/build",
"cacheVariables": { "CMAKE_BUILD_TYPE": "Debug" }
},
{
"name": "linux-release",
"displayName": "Linux Release",
"condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Linux" },
"binaryDir": "${sourceDir}/build",
"cacheVariables": { "CMAKE_BUILD_TYPE": "Release" }
},
{
"name": "macos",
"displayName": "macOS (Xcode)",
"generator": "Xcode",
"condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Darwin" },
"binaryDir": "${sourceDir}/build"
},
{
"name": "mingw-debug",
"displayName": "Windows MinGW Debug (Ninja, needs gcc on PATH)",
"generator": "Ninja",
"condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Windows" },
"binaryDir": "${sourceDir}/build/mingw",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++",
"FETCHCONTENT_BASE_DIR": "${sourceDir}/.fetchcontent-cache/mingw"
}
},
{
"name": "mingw-release",
"displayName": "Windows MinGW Release (Ninja, needs gcc on PATH)",
"generator": "Ninja",
"condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Windows" },
"binaryDir": "${sourceDir}/build/mingw",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++",
"FETCHCONTENT_BASE_DIR": "${sourceDir}/.fetchcontent-cache/mingw"
}
}
],
"buildPresets": [
{ "name": "windows-debug", "configurePreset": "windows", "configuration": "Debug" },
{ "name": "windows-release", "configurePreset": "windows", "configuration": "Release" },
{ "name": "linux-debug", "configurePreset": "linux-debug" },
{ "name": "linux-release", "configurePreset": "linux-release" },
{ "name": "macos-debug", "configurePreset": "macos", "configuration": "Debug" },
{ "name": "macos-release", "configurePreset": "macos", "configuration": "Release" },
{ "name": "mingw-debug", "configurePreset": "mingw-debug" },
{ "name": "mingw-release", "configurePreset": "mingw-release" }
]
}