mirror of
https://github.com/BLAKE3-team/BLAKE3
synced 2025-01-21 15:50:01 +01:00
build(CMake): Add basic CMake presets for MSVC
This commit is contained in:
parent
330af75f5b
commit
524ce1cc3e
2
c/.gitignore
vendored
2
c/.gitignore
vendored
@ -2,3 +2,5 @@ blake3
|
||||
example
|
||||
build/
|
||||
*.o
|
||||
|
||||
CMakeUserPresets.json
|
||||
|
73
c/CMakePresets.json
Normal file
73
c/CMakePresets.json
Normal file
@ -0,0 +1,73 @@
|
||||
{
|
||||
"version": 3,
|
||||
"cmakeMinimumRequired": {
|
||||
"major": 3,
|
||||
"minor": 22,
|
||||
"patch": 0
|
||||
},
|
||||
"configurePresets": [
|
||||
{
|
||||
"name": "base",
|
||||
"hidden": true,
|
||||
"binaryDir": "${sourceDir}/build/${presetName}"
|
||||
},
|
||||
{
|
||||
"name": "msvc",
|
||||
"hidden": true,
|
||||
"generator": "Visual Studio 17 2022",
|
||||
"vendor": {
|
||||
"microsoft.com/VisualStudioSettings/CMake/1.0": {
|
||||
"hostOS": [
|
||||
"Windows"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "x64-windows-msvc",
|
||||
"inherits": [
|
||||
"msvc",
|
||||
"base"
|
||||
],
|
||||
"architecture": "x64"
|
||||
},
|
||||
{
|
||||
"name": "x86-windows-msvc",
|
||||
"inherits": [
|
||||
"msvc",
|
||||
"base"
|
||||
],
|
||||
"architecture": "Win32"
|
||||
},
|
||||
{
|
||||
"name": "arm64-windows-msvc",
|
||||
"inherits": [
|
||||
"msvc",
|
||||
"base"
|
||||
],
|
||||
"architecture": "ARM64"
|
||||
}
|
||||
],
|
||||
"buildPresets": [
|
||||
{
|
||||
"name": "x64-windows-msvc-debug",
|
||||
"configurePreset": "x64-windows-msvc",
|
||||
"configuration": "Debug"
|
||||
},
|
||||
{
|
||||
"name": "x64-windows-msvc-release",
|
||||
"configurePreset": "x64-windows-msvc",
|
||||
"configuration": "RelWithDebInfo"
|
||||
},
|
||||
{
|
||||
"name": "x86-windows-msvc-debug",
|
||||
"configurePreset": "x86-windows-msvc",
|
||||
"configuration": "Debug"
|
||||
},
|
||||
{
|
||||
"name": "x86-windows-msvc-release",
|
||||
"configurePreset": "x86-windows-msvc",
|
||||
"configuration": "RelWithDebInfo"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user