|
| 1 | +{ |
| 2 | + "version": 6, |
| 3 | + "configurePresets": [ |
| 4 | + { |
| 5 | + "name": "common", |
| 6 | + "hidden": true, |
| 7 | + "binaryDir": "${sourceDir}/out/build/${presetName}", |
| 8 | + "installDir": "${sourceDir}/out/install/${presetName}", |
| 9 | + "generator": "Ninja", |
| 10 | + "cacheVariables": { |
| 11 | + "CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}", |
| 12 | + "CMAKE_VERBOSE_MAKEFILE": "OFF" |
| 13 | + } |
| 14 | + }, |
| 15 | + { |
| 16 | + "name": "windows-common", |
| 17 | + "hidden": true, |
| 18 | + "inherits": ["common"], |
| 19 | + "toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake", |
| 20 | + "condition": { |
| 21 | + "type": "equals", |
| 22 | + "lhs": "${hostSystemName}", |
| 23 | + "rhs": "Windows" |
| 24 | + }, |
| 25 | + "cacheVariables": { |
| 26 | + "CMAKE_SYSTEM_VERSION": "10.0" |
| 27 | + } |
| 28 | + }, |
| 29 | + { |
| 30 | + "name": "windows-cl-common", |
| 31 | + "hidden": true, |
| 32 | + "inherits": ["windows-common"], |
| 33 | + "generator": "Visual Studio 17 2022", |
| 34 | + "cacheVariables": { |
| 35 | + "CMAKE_CXX_COMPILER": "cl" |
| 36 | + } |
| 37 | + }, |
| 38 | + { "name": "windows-cl-debug", "inherits": ["windows-cl-common"], "displayName": "Windows - MSVC CL - Debug" }, |
| 39 | + { "name": "windows-cl-release", "inherits": ["windows-cl-common"], "displayName": "Windows - MSVC CL - Release" }, |
| 40 | + { |
| 41 | + "name": "windows-clangcl-common", |
| 42 | + "hidden": true, |
| 43 | + "inherits": ["windows-common"], |
| 44 | + "cacheVariables": { |
| 45 | + "CMAKE_CXX_COMPILER": "clang-cl", |
| 46 | + "CMAKE_C_COMPILER": "clang-cl" |
| 47 | + } |
| 48 | + }, |
| 49 | + { "name": "windows-clangcl-debug", "inherits": ["windows-clangcl-common"], "displayName": "Windows - MSVC ClangCL - Debug", "cacheVariables": { "CMAKE_BUILD_TYPE": "Debug" } }, |
| 50 | + { "name": "windows-clangcl-release","inherits": ["windows-clangcl-common"], "displayName": "Windows - MSVC ClangCL - Release", "cacheVariables": { "CMAKE_BUILD_TYPE": "Release" } }, |
| 51 | + { "name": "linux-common", "hidden": true, "inherits": ["common"], "condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Linux" } }, |
| 52 | + { "name": "macos-common", "hidden": true, "inherits": ["common"], "condition": { "lhs": "${hostSystemName}", "type": "equals", "rhs": "Darwin" } }, |
| 53 | + { "name": "debug", "hidden": true, "cacheVariables": { "CMAKE_BUILD_TYPE": "Debug" } }, |
| 54 | + { "name": "release", "hidden": true, "cacheVariables": { "CMAKE_BUILD_TYPE": "RelWithDebInfo" } }, |
| 55 | + { "name": "pedantic", "hidden": true, "cacheVariables": { "PEDANTIC_COMPILER": "ON", "PEDANTIC_COMPILER_WERROR": "ON" } }, |
| 56 | + { "name": "linux-common-release", "hidden": true, "inherits": "release", "cacheVariables": { "CMAKE_INSTALL_PREFIX": "/usr/local" } }, |
| 57 | + { "name": "linux-clang", "hidden": true, "inherits": "linux-common", "cacheVariables": { "CMAKE_CXX_COMPILER": "clang++" } }, |
| 58 | + { "name": "linux-gcc", "hidden": true, "inherits": "linux-common", "cacheVariables": { "CMAKE_CXX_COMPILER": "g++" } }, |
| 59 | + { "name": "linux-clang-release", "displayName": "Linux (Clang) Release", "inherits": ["linux-clang", "linux-common-release"] }, |
| 60 | + { "name": "linux-clang-debug", "displayName": "Linux (Clang) Debug", "inherits": ["linux-clang", "debug"] }, |
| 61 | + { "name": "linux-gcc-release", "displayName": "Linux (GCC) Release", "inherits": ["linux-gcc", "linux-common-release"] }, |
| 62 | + { "name": "linux-gcc-debug", "displayName": "Linux (GCC) Debug", "inherits": ["linux-gcc", "debug", "pedantic"] }, |
| 63 | + { "name": "macos-release", "displayName": "MacOS Release", "inherits": ["macos-common", "release"] }, |
| 64 | + { "name": "macos-debug", "displayName": "MacOS Debug", "inherits": ["macos-common", "debug"] } |
| 65 | + ], |
| 66 | + "buildPresets": [ |
| 67 | + { "name": "windows-cl-debug", "displayName": "Windows - MSVC CL - Debug", "configurePreset": "windows-cl-debug", "configuration": "Debug" }, |
| 68 | + { "name": "windows-cl-release", "displayName": "Windows - MSVC CL - Release", "configurePreset": "windows-cl-release", "configuration": "Release" }, |
| 69 | + { "name": "windows-clangcl-debug", "displayName": "Windows - MSVC ClangCL - Debug", "configurePreset": "windows-clangcl-debug", "configuration": "Debug" }, |
| 70 | + { "name": "windows-clangcl-release", "displayName": "Windows - MSVC ClangCL - Release", "configurePreset": "windows-clangcl-release", "configuration": "Release" }, |
| 71 | + { "name": "linux-clang-debug", "displayName": "Linux - Clang - Debug", "configurePreset": "linux-clang-debug" }, |
| 72 | + { "name": "linux-clang-release", "displayName": "Linux - Clang - RelWithDebInfo", "configurePreset": "linux-clang-release" }, |
| 73 | + { "name": "linux-gcc-debug", "displayName": "Linux - GCC - Debug", "configurePreset": "linux-gcc-debug" }, |
| 74 | + { "name": "linux-gcc-release", "displayName": "Linux - GCC - RelWithDebInfo", "configurePreset": "linux-gcc-release" }, |
| 75 | + { "name": "macos-debug", "displayName": "MacOS - Debug", "configurePreset": "macos-debug" }, |
| 76 | + { "name": "macos-release", "displayName": "MacOS - RelWithDebInfo", "configurePreset": "macos-release" } |
| 77 | + ], |
| 78 | + "testPresets": [ |
| 79 | + { "name": "windows-cl-debug", "configurePreset": "windows-cl-debug", "output": {"outputOnFailure": true}, "execution": { "noTestsAction": "error", "stopOnFailure": true } }, |
| 80 | + { "name": "windows-cl-release", "configurePreset": "windows-cl-release", "output": {"outputOnFailure": true}, "execution": { "noTestsAction": "error", "stopOnFailure": true } }, |
| 81 | + { "name": "windows-clangcl-debug", "configurePreset": "windows-clangcl-debug", "output": {"outputOnFailure": true}, "execution": { "noTestsAction": "error", "stopOnFailure": true } }, |
| 82 | + { "name": "windows-clangcl-release", "configurePreset": "windows-clangcl-release", "output": {"outputOnFailure": true}, "execution": { "noTestsAction": "error", "stopOnFailure": true } }, |
| 83 | + { "name": "linux-gcc-debug", "configurePreset": "linux-gcc-debug", "output": {"outputOnFailure": true}, "execution": { "noTestsAction": "error", "stopOnFailure": true } }, |
| 84 | + { "name": "linux-gcc-release", "configurePreset": "linux-gcc-release", "output": {"outputOnFailure": true}, "execution": { "noTestsAction": "error", "stopOnFailure": true } }, |
| 85 | + { "name": "linux-clang-debug", "configurePreset": "linux-clang-debug", "output": {"outputOnFailure": true}, "execution": { "noTestsAction": "error", "stopOnFailure": true } }, |
| 86 | + { "name": "linux-clang-release", "configurePreset": "linux-clang-release", "output": {"outputOnFailure": true}, "execution": { "noTestsAction": "error", "stopOnFailure": true } } |
| 87 | + ] |
| 88 | +} |
0 commit comments