Skip to content

Commit

Permalink
Add a CMake preset for local building outside of containers
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenraven committed Nov 29, 2021
1 parent 39f021d commit e626a6e
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
build/
work/

# Clang
.clangd
Expand Down
65 changes: 65 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 21,
"patch": 0
},
"configurePresets": [
{
"name": "default",
"displayName": "Default Config (Debug)",
"description": "Default build using Ninja generator",
"generator": "Ninja",
"binaryDir": "${sourceDir}/work/debug",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": {
"type": "STRING",
"value": "${sourceDir}/work/debuginstall"
},
"CMAKE_BUILD_TYPE": {
"type": "STRING",
"value": "Debug"
},
"CMAKE_EXPORT_COMPILE_COMMANDS": {
"type": "BOOL",
"value": true
},
"BUILD_SHARED_LIBS": {
"type": "BOOL",
"value": false
},
"CMAKE_CXX_COMPILER": {
"type": "FILEPATH",
"value": "/usr/bin/clang++"
},
"CMAKE_C_COMPILER": {
"type": "FILEPATH",
"value": "/usr/bin/clang"
}
},
"environment": {},
"vendor": {}
}
],
"buildPresets": [
{
"name": "default",
"configurePreset": "default"
}
],
"testPresets": [
{
"name": "default",
"configurePreset": "default",
"output": {
"outputOnFailure": true
},
"execution": {
"noTestsAction": "error",
"stopOnFailure": true
}
}
],
"vendor": {}
}

0 comments on commit e626a6e

Please sign in to comment.