From 5d6ec0d6b0f4f8631073408d38332d90ec8ad47e Mon Sep 17 00:00:00 2001 From: Eren Okka Date: Fri, 1 Dec 2023 01:21:41 +0300 Subject: [PATCH] Add CMakePresets.json --- CMakePresets.json | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 CMakePresets.json diff --git a/CMakePresets.json b/CMakePresets.json new file mode 100644 index 0000000..d350f81 --- /dev/null +++ b/CMakePresets.json @@ -0,0 +1,47 @@ +{ + "version": 6, + "cmakeMinimumRequired": { + "major": 3, + "minor": 20, + "patch": 0 + }, + "configurePresets": [ + { + "name": "ninja-multi", + "displayName": "Ninja Multi-Config", + "generator": "Ninja Multi-Config", + "binaryDir": "${sourceDir}/build/${presetName}", + "cacheVariables": { + "CMAKE_CXX_COMPILER": "cl.exe" + } + } + ], + "buildPresets": [ + { + "name": "ninja-debug", + "configurePreset": "ninja-multi", + "displayName": "Debug", + "configuration": "Debug" + }, + { + "name": "ninja-release", + "configurePreset": "ninja-multi", + "displayName": "Release", + "configuration": "Release" + } + ], + "testPresets": [ + { + "name": "test-debug", + "configurePreset": "ninja-multi", + "displayName": "Debug", + "configuration": "Debug" + }, + { + "name": "test-release", + "configurePreset": "ninja-multi", + "displayName": "Release", + "configuration": "Release" + } + ] +}