From 15fe12b1a9486522ddf7f91cae2323b5a837b832 Mon Sep 17 00:00:00 2001 From: Marius Greuel Date: Sun, 20 Feb 2022 18:17:10 +0100 Subject: [PATCH] Add CMakeSettings.json for Visual Studio 2022 --- CMakeSettings.json | 126 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100644 CMakeSettings.json diff --git a/CMakeSettings.json b/CMakeSettings.json new file mode 100644 index 00000000..aa05f9ee --- /dev/null +++ b/CMakeSettings.json @@ -0,0 +1,126 @@ +{ + "configurations": [ + { + "name": "x86-Debug", + "generator": "Visual Studio 17 2022", + "configurationType": "Debug", + "buildRoot": "${projectDir}\\out\\build\\${name}", + "installRoot": "${projectDir}\\out\\install\\${name}", + "cmakeCommandArgs": "", + "buildCommandArgs": "", + "ctestCommandArgs": "", + "inheritEnvironments": [ "msvc_x86" ], + "variables": [ + { + "name": "DEBUG_CMAKE", + "value": "True", + "type": "BOOL" + }, + { + "name": "USE_EXTERNAL", + "value": "True", + "type": "BOOL" + } + ] + }, + { + "name": "x86-Release", + "generator": "Ninja", + "configurationType": "RelWithDebInfo", + "buildRoot": "${projectDir}\\out\\build\\${name}", + "installRoot": "${projectDir}\\out\\install\\${name}", + "cmakeCommandArgs": "", + "buildCommandArgs": "", + "ctestCommandArgs": "", + "inheritEnvironments": [ "msvc_x86" ], + "variables": [ + { + "name": "DEBUG_CMAKE", + "value": "True", + "type": "BOOL" + }, + { + "name": "USE_EXTERNAL", + "value": "True", + "type": "BOOL" + }, + { + "name": "CMAKE_C_FLAGS_RELWITHDEBINFO", + "value": "/MT /GL /Zi /O2 /Ob1 /DNDEBUG", + "type": "STRING" + }, + { + "name": "CMAKE_CXX_FLAGS_RELWITHDEBINFO", + "value": "/MT /GL /Zi /O2 /Ob1 /DNDEBUG", + "type": "STRING" + }, + { + "name": "CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO", + "value": "/debug /INCREMENTAL:NO /LTCG /OPT:REF /OPT:ICF", + "type": "STRING" + } + ] + }, + { + "name": "x64-Debug", + "generator": "Visual Studio 17 2022 Win64", + "configurationType": "Debug", + "buildRoot": "${projectDir}\\out\\build\\${name}", + "installRoot": "${projectDir}\\out\\install\\${name}", + "cmakeCommandArgs": "", + "buildCommandArgs": "", + "ctestCommandArgs": "", + "inheritEnvironments": [ "msvc_x64_x64" ], + "variables": [ + { + "name": "DEBUG_CMAKE", + "value": "True", + "type": "BOOL" + }, + { + "name": "USE_EXTERNAL", + "value": "True", + "type": "BOOL" + } + ] + }, + { + "name": "x64-Release", + "generator": "Ninja", + "configurationType": "RelWithDebInfo", + "buildRoot": "${projectDir}\\out\\build\\${name}", + "installRoot": "${projectDir}\\out\\install\\${name}", + "cmakeCommandArgs": "", + "buildCommandArgs": "", + "ctestCommandArgs": "", + "inheritEnvironments": [ "msvc_x64_x64" ], + "variables": [ + { + "name": "DEBUG_CMAKE", + "value": "True", + "type": "BOOL" + }, + { + "name": "USE_EXTERNAL", + "value": "True", + "type": "BOOL" + }, + { + "name": "CMAKE_C_FLAGS_RELWITHDEBINFO", + "value": "/MT /GL /Zi /O2 /Ob1 /DNDEBUG", + "type": "STRING" + }, + { + "name": "CMAKE_CXX_FLAGS_RELWITHDEBINFO", + "value": "/MT /GL /Zi /O2 /Ob1 /DNDEBUG", + "type": "STRING" + }, + { + "name": "CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO", + "value": "/debug /INCREMENTAL:NO /LTCG /OPT:REF /OPT:ICF", + "type": "STRING" + } + ] + } + ] +}