Skip to content

Commit

Permalink
cmake: Add a CMakePresets.json file
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsergio committed Dec 2, 2024
1 parent e8457ca commit 08aa052
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"version": 3,
"configurePresets": [
{
"name": "base",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build-${presetName}",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
}
},
{
"name": "dev",
"inherits": "base",
"displayName": "Dev build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "release",
"inherits": "base",
"displayName": "Release build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
}
]
}

0 comments on commit 08aa052

Please sign in to comment.