Skip to content

Commit

Permalink
Merge pull request #74 from andrsd/cmake-presets
Browse files Browse the repository at this point in the history
feat: adding cmake presets for release and debug
  • Loading branch information
andrsd authored Jan 3, 2025
2 parents 27a7c87 + 71286ab commit 476c9e2
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"version": 6,
"configurePresets": [
{
"name": "debug",
"displayName": "Debug",
"generator": "Unix Makefiles",
"binaryDir": "build-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_FLAGS_DEBUG": "-g -Wall",
"CMAKE_C_FLAGS_DEBUG": "-g -Wall",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"EXODUSIICPP_BUILD_TESTS": "ON",
"EXODUSIICPP_CODE_COVERAGE": "ON"
}
},
{
"name": "release",
"displayName": "Release",
"generator": "Unix Makefiles",
"binaryDir": "build-release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_CXX_FLAGS_RELEASE": "-O3 -DNDEBUG",
"CMAKE_C_FLAGS_RELEASE": "-O3 -DNDEBUG",
"EXODUSIICPP_BUILD_TESTS": "OFF",
"EXODUSIICPP_CODE_COVERAGE": "OFF"
}
}
],
"buildPresets": [
{
"name": "debug",
"displayName": "Debug Build",
"configurePreset": "debug",
"configuration": "Debug"
},
{
"name": "release",
"displayName": "Release Build",
"configurePreset": "release",
"configuration": "Release"
}
],
"testPresets": [
{
"name": "debug",
"configurePreset": "debug"
}
]
}

0 comments on commit 476c9e2

Please sign in to comment.