Skip to content

Commit

Permalink
Add mac and linux cmake presets.
Browse files Browse the repository at this point in the history
  • Loading branch information
lordhippo committed Mar 4, 2024
1 parent 2b5b0ab commit b0a6835
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,56 @@
"rhs": "Windows"
}
},
{
"name": "linux-base",
"inherits": "base",
"hidden": true,
"generator": "Ninja",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
}
},
{
"name": "macos-base",
"inherits": "base",
"hidden": true,
"generator": "Ninja",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Darwin"
}
},
{
"name": "macos-debug",
"inherits": "macos-base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "macos-release",
"inherits": "macos-base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "linux-debug",
"inherits": "linux-base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "linux-release",
"inherits": "linux-base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "windows-vs-22",
"description": "Target Windows (64-bit) for Visual Studio 2022",
Expand Down Expand Up @@ -68,6 +118,22 @@
}
],
"buildPresets": [
{
"name": "linux-debug",
"configurePreset": "linux-debug"
},
{
"name": "linux-release",
"configurePreset": "linux-release"
},
{
"name": "macos-debug",
"configurePreset": "macos-debug"
},
{
"name": "macos-release",
"configurePreset": "macos-release"
},
{
"name": "windows-debug",
"configurePreset": "windows-debug"
Expand Down

0 comments on commit b0a6835

Please sign in to comment.