diff --git a/CMakePresets.json b/CMakePresets.json new file mode 100644 index 0000000..92b8275 --- /dev/null +++ b/CMakePresets.json @@ -0,0 +1,108 @@ +{ + "version": 3, + "configurePresets": [ + { + "name": "windows", + "hidden": true, + "generator": "Ninja", + "binaryDir": "${sourceDir}/out/build/${presetName}", + "condition": { + "type": "equals", + "lhs": "${hostSystemName}", + "rhs": "Windows" + } + }, + { + "name": "linux", + "hidden": true, + "generator": "Unix Makefiles", + "binaryDir": "${sourceDir}/out/build/${presetName}", + "condition": { + "type": "equals", + "lhs": "${hostSystemName}", + "rhs": "Linux" + } + }, + { + "name": "x86", + "hidden": true, + "architecture": { + "value": "x86", + "strategy": "external" + }, + "cacheVariables": { + "OUT_FILE_SUFFIX": "x86" + } + }, + { + "name": "x64", + "hidden": true, + "architecture": { + "value": "x64", + "strategy": "external" + }, + "cacheVariables": { + "OUT_FILE_SUFFIX": "x64" + } + }, + { + "name": "arm", + "hidden": true, + "architecture": { + "value": "arm", + "strategy": "external" + }, + "cacheVariables": { + "OUT_FILE_SUFFIX": "arm" + } + }, + { + "name": "arm64", + "hidden": true, + "architecture": { + "value": "arm64", + "strategy": "external" + }, + "cacheVariables": { + "OUT_FILE_SUFFIX": "arm64" + } + }, + { + "name": "debug", + "hidden": true, + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Debug" + } + }, + { + "name": "release", + "hidden": true, + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Release" + } + }, + + { "name": "Windows-x86-Debug", "inherits": ["windows", "x86", "debug"] }, + { "name": "Windows-x86-Release", "inherits": ["windows", "x86", "release"] }, + { "name": "Windows-x64-Debug", "inherits": ["windows", "x64", "debug"] }, + { "name": "Windows-x64-Release", "inherits": ["windows", "x64", "release"] }, + { "name": "Linux-x64-Debug", "inherits": ["linux", "x64", "debug"] }, + { "name": "Linux-x64-Release", "inherits": ["linux", "x64", "release"] }, + { "name": "Linux-arm-Debug", "inherits": ["linux", "arm", "debug"] }, + { "name": "Linux-arm-Release", "inherits": ["linux", "arm", "release"] }, + { "name": "Linux-arm64-Debug", "inherits": ["linux", "arm64", "debug"] }, + { "name": "Linux-arm64-Release", "inherits": ["linux", "arm64", "release"] } + ], + "buildPresets": [ + { "name": "Windows-x86-Debug", "configurePreset": "Windows-x86-Debug" }, + { "name": "Windows-x86-Release", "configurePreset": "Windows-x86-Release" }, + { "name": "Windows-x64-Debug", "configurePreset": "Windows-x64-Debug" }, + { "name": "Windows-x64-Release", "configurePreset": "Windows-x64-Release" }, + { "name": "Linux-x64-Debug", "configurePreset": "Linux-x64-Debug" }, + { "name": "Linux-x64-Release", "configurePreset": "Linux-x64-Release" }, + { "name": "Linux-arm-Debug", "configurePreset": "Linux-arm-Debug" }, + { "name": "Linux-arm-Release", "configurePreset": "Linux-arm-Release" }, + { "name": "Linux-arm64-Debug", "configurePreset": "Linux-arm64-Debug" }, + { "name": "Linux-arm64-Release", "configurePreset": "Linux-arm64-Release" } + ] +} \ No newline at end of file diff --git a/CMakeSettings.json b/CMakeSettings.json deleted file mode 100644 index b580408..0000000 --- a/CMakeSettings.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "configurations": [ - { - "name": "x86-Debug", - "generator": "Ninja", - "configurationType": "Debug", - "buildRoot": "${projectDir}\\out\\build\\${name}", - "installRoot": "${projectDir}\\out\\install\\${name}", - "cmakeCommandArgs": "", - "buildCommandArgs": "", - "ctestCommandArgs": "", - "inheritEnvironments": [ "msvc_x86" ], - "cmakeToolchain": "windows-x86.cmake" - }, - { - "name": "x86-Release", - "generator": "Ninja", - "configurationType": "RelWithDebInfo", - "buildRoot": "${projectDir}\\out\\build\\${name}", - "installRoot": "${projectDir}\\out\\install\\${name}", - "cmakeCommandArgs": "", - "buildCommandArgs": "", - "ctestCommandArgs": "", - "inheritEnvironments": [ "msvc_x86" ], - "cmakeToolchain": "windows-x86.cmake" - }, - { - "name": "x64-Debug", - "generator": "Ninja", - "configurationType": "Debug", - "buildRoot": "${projectDir}\\out\\build\\${name}", - "installRoot": "${projectDir}\\out\\install\\${name}", - "cmakeCommandArgs": "", - "buildCommandArgs": "", - "ctestCommandArgs": "", - "inheritEnvironments": [ "msvc_x64_x64" ], - "cmakeToolchain": "windows-x64.cmake" - }, - { - "name": "x64-Release", - "generator": "Ninja", - "configurationType": "RelWithDebInfo", - "buildRoot": "${projectDir}\\out\\build\\${name}", - "installRoot": "${projectDir}\\out\\install\\${name}", - "cmakeCommandArgs": "", - "buildCommandArgs": "", - "ctestCommandArgs": "", - "inheritEnvironments": [ "msvc_x64_x64" ], - "cmakeToolchain": "windows-x64.cmake" - } - ] -} \ No newline at end of file