added default presets
This commit is contained in:
parent
2314e59bc9
commit
97238c9f1b
2 changed files with 38 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
|||
# the structure takes heavily after https://cliutils.gitlab.io/modern-cmake/chapters/basics/structure.html
|
||||
# This file takes heavily from https://gitlab.com/CLIUtils/modern-cmake/-/blob/master/examples/extended-project/CMakeLists.txt
|
||||
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
cmake_minimum_required(VERSION 4.1.2)
|
||||
|
||||
project(project_name_here
|
||||
VERSION 0.1
|
||||
|
|
|
|||
37
CMakePresets.json
Normal file
37
CMakePresets.json
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
"version":10,
|
||||
"cmakeMinimumRequired":{
|
||||
"major": 4,
|
||||
"minor": 1,
|
||||
"patch": 2
|
||||
},
|
||||
"configurePresets":[{
|
||||
"name":"default",
|
||||
"generator": "Ninja",
|
||||
"binaryDir": "./build",
|
||||
"$comment":{"graphviz": "dependencies"}
|
||||
}],
|
||||
"buildPresets":[{
|
||||
"name": "default",
|
||||
"configurePreset":"default",
|
||||
"jobs": 4
|
||||
}],
|
||||
"testPresets":[],
|
||||
"workflowPresets":[
|
||||
{
|
||||
"name": "default",
|
||||
"steps": [
|
||||
{"type":"configure", "name":"default"},
|
||||
{"type":"build", "name":"default"}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "default-test",
|
||||
"$comment":"TODO: add test when we add a test setup here",
|
||||
"steps": [
|
||||
{"type":"configure", "name":"default"},
|
||||
{"type":"build", "name":"default"}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in a new issue