diff --git a/.gitignore b/.gitignore index 1abec06..d163863 100644 --- a/.gitignore +++ b/.gitignore @@ -1,12 +1 @@ -CMakeLists.txt.user -CMakeCache.txt -CMakeFiles -CMakeScripts -Testing -Makefile -cmake_install.cmake -install_manifest.txt -compile_commands.json -CTestTestfile.cmake -_deps build/ \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index b7ea411..2696117 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.10) +cmake_minimum_required(VERSION 3.20) set(CMAKE_DISABLE_SOURCE_CHANGES ON) set(CMAKE_DISABLE_IN_SOURCE_BUILD ON) diff --git a/CMakePresets.json b/CMakePresets.json new file mode 100644 index 0000000..db76638 --- /dev/null +++ b/CMakePresets.json @@ -0,0 +1,53 @@ + +{ + "version": 2, + "cmakeMinimumRequired": { + "major": 3, + "minor": 20, + "patch": 0 + }, + "configurePresets": [{ + "name": "release", + "displayName": "Default Release Config", + "description": "Release build using Ninja generator", + "generator": "Ninja", + "binaryDir": "${sourceDir}/build/default", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Release" + } + }, + { + "name": "debug", + "displayName": "Default Debug Config", + "description": "Debug build using Ninja generator", + "generator": "Ninja", + "binaryDir": "${sourceDir}/build/debug", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Debug" + } + }, + { + "name": "vs2019", + "displayName": "Visual Studio 2019", + "description": "Visual Studio 2019 on Windows", + "generator": "Visual Studio 16 2019", + "binaryDir": "${sourceDir}/build/vs2019" + }, + { + "name": "vs2022", + "displayName": "Visual Studio 2022", + "description": "Visual Studio 2022 on Windows", + "generator": "Visual Studio 17 2022", + "binaryDir": "${sourceDir}/build/vs2022" + } + ], + "buildPresets": [{ + "name": "release", + "configurePreset": "release" + }, + { + "name": "debug", + "configurePreset": "debug" + } + ] +} \ No newline at end of file