From 82b1398c73447e58add7e72a0721f8909aa72304 Mon Sep 17 00:00:00 2001 From: Dasperal Date: Wed, 12 Jun 2024 18:01:13 +0300 Subject: [PATCH] Cmake: Add cmake presets for CI builds --- CMakePresets.json | 72 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 CMakePresets.json diff --git a/CMakePresets.json b/CMakePresets.json new file mode 100644 index 0000000..4080b96 --- /dev/null +++ b/CMakePresets.json @@ -0,0 +1,72 @@ +{ + "version": 6, + "cmakeMinimumRequired": { + "major": 3, + "minor": 0, + "patch": 0 + }, + "configurePresets": [ + { + "name": "watcom", + "hidden": true, + "generator": "Watcom WMake", + "cacheVariables": { + "CMAKE_SYSTEM_NAME": "DOS" + } + }, + { + "name": "ci-watcom", + "inherits": "watcom", + "displayName": "Watcom (CI)", + "description": "Watcom configuration for CI builds", + "condition": { + "type": "equals", + "lhs": "$penv{CI}", + "rhs": "true" + }, + "cacheVariables": { + "CMAKE_BUILD_TYPE": "RelWithDebInfo" + }, + "binaryDir": "${sourceDir}/build", + "warnings": { + "dev": true, + "deprecated": true, + "uninitialized": true + }, + "errors": { + "dev": true, + "deprecated": true + } + } + ], + "buildPresets": [ + { + "name": "ci-watcom", + "configurePreset": "ci-watcom", + "displayName": "Watcom (CI)", + "description": "Cmake build configuration for CI builds using Watcom", + "condition": { + "type": "equals", + "lhs": "$penv{CI}", + "rhs": "true" + } + } + ], + "workflowPresets": [ + { + "name": "ci-watcom", + "displayName": "Watcom (CI)", + "description": "Workflow for CI builds using Watcom", + "steps": [ + { + "type": "configure", + "name": "ci-watcom" + }, + { + "type": "build", + "name": "ci-watcom" + } + ] + } + ] +} \ No newline at end of file