From 22564e80b5be3d36b08c1a72cdb396dfeb9f043c Mon Sep 17 00:00:00 2001 From: Marius Greuel Date: Tue, 28 Dec 2021 15:07:55 +0100 Subject: [PATCH] Add CMake settings for Visual Studio --- src/CMakeSettings.json | 126 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100644 src/CMakeSettings.json diff --git a/src/CMakeSettings.json b/src/CMakeSettings.json new file mode 100644 index 00000000..239842fd --- /dev/null +++ b/src/CMakeSettings.json @@ -0,0 +1,126 @@ +{ + "configurations": [ + { + "name": "x86-Debug", + "generator": "Visual Studio 16 2019", + "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": "Visual Studio 16 2019", + "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 16 2019 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": "Visual Studio 16 2019 Win64", + "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" + } + ] + } + ] +}