Skip to content

Commit

Permalink
Added CMake presets and GitHub actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Vasyliev committed Aug 1, 2023
1 parent 3ae9869 commit 911723e
Show file tree
Hide file tree
Showing 5 changed files with 93 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ jobs:
with:
configurePreset: base-win
buildPreset: base-win
test: main

22 changes: 22 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
### CMake setup

# Version
cmake_minimum_required(VERSION 3.21 FATAL_ERROR)
cmake_minimum_required(VERSION 3.23 FATAL_ERROR)
# Policies
cmake_policy(SET CMP0077 NEW) # option honors normal variables

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": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 23,
"patch": 0
},
"configurePresets": [
{
"name": "base",
"displayName": "Default Config",
"description": "Default build preset",
"binaryDir": "${sourceDir}/build/base",
"cacheVariables": {
"BUILD_SHARED_LIBS": false,
"OPTION_REAL_BUILD_EXAMPLES": true,
"OPTION_REAL_ENABLE_COVERAGE": true,
"OPTION_REAL_ENABLE_SANITIZE": false,
"OPTION_REAL_DEBUG_CMAKE": false
},
"environment": {
},
"vendor": {
}
},
{
"name": "base-win",
"inherits": [
"base"
],
"description": "Base windows build preset",
"binaryDir": "${sourceDir}/build/base",
"generator": "Visual Studio 17 2022"
}
],
"buildPresets": [
{
"name": "default",
"configurePreset": "default"
},
{
"name": "base-win",
"configurePreset": "base-win"
}
],
"testPresets": [
],
"packagePresets": [
],
"workflowPresets": [
{
"name": "default",
"steps": [
{
"type": "configure",
"name": "base-win"
},
{
"type": "build",
"name": "base-win"
}
]
}
]
}

0 comments on commit 911723e

Please sign in to comment.