|
| 1 | +{ |
| 2 | + "version": 3, |
| 3 | + "cmakeMinimumRequired": { |
| 4 | + "major": 3, |
| 5 | + "minor": 21, |
| 6 | + "patch": 0 |
| 7 | + }, |
| 8 | + "configurePresets": [ |
| 9 | + { |
| 10 | + "name": "Base-Configure", |
| 11 | + "generator": "Ninja Multi-Config", |
| 12 | + "binaryDir": "${sourceDir}/build/${presetName}", |
| 13 | + "cacheVariables": { |
| 14 | + "co-cpp19-enable-tests": { |
| 15 | + "type": "BOOL", |
| 16 | + "value": "ON" |
| 17 | + }, |
| 18 | + "CMAKE_CONFIGURATION_TYPES": "Debug;Release" |
| 19 | + }, |
| 20 | + "hidden": true |
| 21 | + }, |
| 22 | + { |
| 23 | + "name": "Windows-MSVC", |
| 24 | + "inherits": "Base-Configure", |
| 25 | + "displayName": "Tests on Windows", |
| 26 | + "description": "Used to configure the tests on Windows", |
| 27 | + "cacheVariables": { |
| 28 | + "CMAKE_CXX_COMPILER": "cl.exe", |
| 29 | + "CMAKE_CXX_FLAGS": "/permissive- /Zc:__cplusplus /Zc:externConstexpr /Zc:inline /Zc:preprocessor /Zc:throwingNew /diagnostics:caret /wd4068 /D_ENABLE_EXTENDED_ALIGNED_STORAGE" |
| 30 | + } |
| 31 | + }, |
| 32 | + { |
| 33 | + "name": "Linux-Clang", |
| 34 | + "inherits": "Base-Configure", |
| 35 | + "displayName": "Tests on Linux", |
| 36 | + "description": "Used to configure the tests on Linux", |
| 37 | + "cacheVariables": { |
| 38 | + "CMAKE_CXX_COMPILER": "clang++-12", |
| 39 | + "CMAKE_CXX_FLAGS": "-fsized-deallocation -Wall -Wextra -Werror --pedantic -ftemplate-backtrace-limit=0 -Wno-gnu-zero-variadic-macro-arguments" |
| 40 | + } |
| 41 | + }, |
| 42 | + { |
| 43 | + "name": "Clang-Static-Analyser", |
| 44 | + "inherits": "Base-Configure", |
| 45 | + "displayName": "Clang Static Analyser on Linux", |
| 46 | + "description": "Used to run clang static analyser", |
| 47 | + "cacheVariables": { |
| 48 | + "CMAKE_CXX_COMPILER": "clang++-12", |
| 49 | + "CMAKE_CXX_FLAGS": "-fsized-deallocation --analyze" |
| 50 | + } |
| 51 | + } |
| 52 | + ], |
| 53 | + "buildPresets": [ |
| 54 | + { |
| 55 | + "name": "Windows-MSVC-Debug", |
| 56 | + "displayName": "Tests on Windows in debug mode", |
| 57 | + "description": "Used to build the tests on windows. The cl compiler is used. It build in debug mode.", |
| 58 | + "configurePreset": "Windows-MSVC", |
| 59 | + "configuration": "Debug" |
| 60 | + }, |
| 61 | + { |
| 62 | + "name": "Windows-MSVC-Release", |
| 63 | + "displayName": "Tests on Windows in release mode", |
| 64 | + "description": "Used to build the tests on windows. The cl compiler is used. It build in release mode.", |
| 65 | + "configurePreset": "Windows-MSVC", |
| 66 | + "configuration": "Release" |
| 67 | + }, |
| 68 | + { |
| 69 | + "name": "Linux-Clang-Debug", |
| 70 | + "displayName": "Tests on Linux in debug mode", |
| 71 | + "description": "Used to build the tests on linux. The clang compiler is used. It build in debug mode.", |
| 72 | + "configurePreset": "Linux-Clang", |
| 73 | + "configuration": "Debug" |
| 74 | + }, |
| 75 | + { |
| 76 | + "name": "Linux-Clang-Release", |
| 77 | + "displayName": "Tests on Linux in release mode", |
| 78 | + "description": "Used to build the tests on linux. The Clang compiler is used. It build in release mode.", |
| 79 | + "configurePreset": "Linux-Clang", |
| 80 | + "configuration": "Release" |
| 81 | + }, |
| 82 | + { |
| 83 | + "name": "Clang-Static-Analyser", |
| 84 | + "displayName": "Analyse on linux", |
| 85 | + "description": "Used to build the tests on linux. The clang compiler is used. It is build with analyse", |
| 86 | + "configurePreset": "Clang-Static-Analyser", |
| 87 | + "configuration": "Debug" |
| 88 | + } |
| 89 | + ], |
| 90 | + "testPresets": [ |
| 91 | + { |
| 92 | + "name": "Base-Test", |
| 93 | + "output": { |
| 94 | + "outputOnFailure": true, |
| 95 | + "debug": false |
| 96 | + }, |
| 97 | + "execution": { |
| 98 | + "noTestsAction": "error", |
| 99 | + "stopOnFailure": true |
| 100 | + }, |
| 101 | + "hidden": true |
| 102 | + }, |
| 103 | + |
| 104 | + { |
| 105 | + "name": "Test-Windows-MSVC-Debug", |
| 106 | + "inherits": "Base-Test", |
| 107 | + "displayName": "Tests on Windows", |
| 108 | + "description": "Used to test on Windows", |
| 109 | + "configurePreset": "Windows-MSVC", |
| 110 | + "configuration": "Debug" |
| 111 | + }, |
| 112 | + { |
| 113 | + "name": "Test-Windows-MSVC-Release", |
| 114 | + "inherits": "Base-Test", |
| 115 | + "displayName": "Tests on Windows", |
| 116 | + "description": "Used to test on Windows", |
| 117 | + "configurePreset": "Windows-MSVC", |
| 118 | + "configuration": "Release" |
| 119 | + }, |
| 120 | + { |
| 121 | + "name": "Test-Linux-Clang-Debug", |
| 122 | + "inherits": "Base-Test", |
| 123 | + "displayName": "Tests on Linux", |
| 124 | + "description": "Used to test on Linux", |
| 125 | + "configurePreset": "Linux-Clang", |
| 126 | + "configuration": "Debug" |
| 127 | + }, |
| 128 | + { |
| 129 | + "name": "Test-Linux-Clang-Release", |
| 130 | + "inherits": "Base-Test", |
| 131 | + "displayName": "Tests on Linux", |
| 132 | + "description": "Used to test on Linux", |
| 133 | + "configurePreset": "Linux-Clang", |
| 134 | + "configuration": "Release" |
| 135 | + } |
| 136 | + ] |
| 137 | +} |
0 commit comments