add CMakePresets.json (#3116)

* add CMakePresets.json

* Update REUSE.toml
This commit is contained in:
Fire Cube 2025-06-19 12:17:50 +02:00 committed by GitHub
parent 8e06b1b2b0
commit 33f46202d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 48 additions and 0 deletions

47
CMakePresets.json Normal file
View file

@ -0,0 +1,47 @@
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 24,
"patch": 0
},
"configurePresets": [
{
"name": "x64-Clang-Debug",
"displayName": "Clang x64 Debug",
"generator": "Ninja",
"binaryDir": "${sourceDir}/Build/x64-Clang-Debug",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang-cl",
"CMAKE_CXX_COMPILER": "clang-cl",
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/Install/x64-Clang-Debug"
}
},
{
"name": "x64-Clang-Release",
"displayName": "Clang x64 Release",
"generator": "Ninja",
"binaryDir": "${sourceDir}/Build/x64-Clang-Release",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang-cl",
"CMAKE_CXX_COMPILER": "clang-cl",
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/Install/x64-Clang-Release"
}
},
{
"name": "x64-Clang-RelWithDebInfo",
"displayName": "Clang x64 RelWithDebInfo",
"generator": "Ninja",
"binaryDir": "${sourceDir}/Build/x64-Clang-RelWithDebInfo",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang-cl",
"CMAKE_CXX_COMPILER": "clang-cl",
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/Install/x64-Clang-RelWithDebInfo"
}
}
]
}

View file

@ -5,6 +5,7 @@ path = [
"REUSE.toml",
"crowdin.yml",
"CMakeSettings.json",
"CMakePresets.json",
".github/FUNDING.yml",
".github/shadps4.png",
".github/workflows/scripts/update_translation.sh",