{ "version": 6, "cmakeMinimumRequired": { "major": 3, "minor": 26, "patch": 0 }, "configurePresets": [ { "name": "base", "hidden": true, "generator": "Visual Studio 17 2022", "binaryDir": "${sourceDir}/build/${presetName}", "toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake", "cacheVariables": { "CMAKE_CXX_STANDARD": "20", "METACORE_BUILD_TESTS": "ON" } }, { "name": "vs2022-debug", "inherits": "base", "displayName": "VS2022 Debug", "cacheVariables": { "CMAKE_BUILD_TYPE": "Debug" } }, { "name": "vs2022-release", "inherits": "base", "displayName": "VS2022 Release", "cacheVariables": { "CMAKE_BUILD_TYPE": "Release" } }, { "name": "linux-base", "hidden": true, "generator": "Ninja", "binaryDir": "${sourceDir}/build/${presetName}", "toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake", "cacheVariables": { "CMAKE_CXX_STANDARD": "20", "CMAKE_C_COMPILER": "/usr/bin/clang-15", "CMAKE_CXX_COMPILER": "/usr/bin/clang++-15", "CMAKE_CXX_FLAGS": "-stdlib=libc++", "CMAKE_EXE_LINKER_FLAGS": "-stdlib=libc++", "CMAKE_SHARED_LINKER_FLAGS": "-stdlib=libc++", "VCPKG_TARGET_TRIPLET": "x64-linux-clang-libcxx", "VCPKG_OVERLAY_TRIPLETS": "${sourceDir}/vcpkg-triplets", "METACORE_BUILD_TESTS": "ON" }, "condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Linux" } }, { "name": "linux-development", "inherits": "linux-base", "displayName": "Linux x64 Development", "cacheVariables": { "CMAKE_BUILD_TYPE": "RelWithDebInfo" } }, { "name": "linux-release", "inherits": "linux-base", "displayName": "Linux x64 Release", "cacheVariables": { "CMAKE_BUILD_TYPE": "Release" } } ], "buildPresets": [ { "name": "build-debug", "configurePreset": "vs2022-debug", "configuration": "Debug" }, { "name": "build-release", "configurePreset": "vs2022-release", "configuration": "Release" }, { "name": "build-linux-development", "configurePreset": "linux-development" }, { "name": "build-linux-release", "configurePreset": "linux-release" } ], "testPresets": [ { "name": "test-debug", "configurePreset": "vs2022-debug", "configuration": "Debug", "output": { "outputOnFailure": true } }, { "name": "test-linux-development", "configurePreset": "linux-development", "output": { "outputOnFailure": true } } ] }