Skip to content

Commit

Permalink
Add linux-gcc CMake presets. Resolves #24.
Browse files Browse the repository at this point in the history
  • Loading branch information
joseasoler committed Sep 4, 2023
1 parent b7423ae commit e3f5991
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,21 @@
},
"hidden": true
},
{
"name": "cfg-linux-gcc",
"inherits": [
"cfg-base"
],
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x64-linux"
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
},
"hidden": true
},
{
"name": "cfg-win-msvc",
"inherits": [
Expand All @@ -47,6 +62,22 @@
},
"hidden": true
},
{
"name": "cfg-linux-dbg-gcc",
"inherits": [
"cfg-dbg",
"cfg-linux-gcc"
],
"displayName": "Linux GCC debug configuration"
},
{
"name": "cfg-linux-rel-gcc",
"inherits": [
"cfg-rel",
"cfg-linux-gcc"
],
"displayName": "Linux GCC release configuration"
},
{
"name": "cfg-win-dbg-msvc",
"inherits": [
Expand All @@ -73,6 +104,18 @@
}
],
"buildPresets": [
{
"name": "linux-dbg-gcc",
"configurePreset": "cfg-linux-dbg-gcc",
"displayName": "Debug",
"configuration": "Debug"
},
{
"name": "linux-rel-gcc",
"configurePreset": "cfg-linux-rel-gcc",
"displayName": "Release",
"configuration": "Release"
},
{
"name": "win-dbg-msvc",
"configurePreset": "cfg-win-dbg-msvc",
Expand Down

0 comments on commit e3f5991

Please sign in to comment.