Switch from CPM to VCPKG

This commit is contained in:
2024-12-07 19:30:17 +01:00
parent e4378dcddc
commit 997e45d8af
9 changed files with 89 additions and 1302 deletions

View File

@@ -1,8 +1,8 @@
{
"version": 2,
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 14,
"minor": 24,
"patch": 0
},
"configurePresets": [
@@ -26,17 +26,25 @@
"CMAKE_CXX_STANDARD_REQUIRED": "ON"
}
},
{
"name": "vcpkg",
"hidden": true,
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"VCPKG_INSTALL_OPTIONS": "--no-print-usage"
}
},
{
"name": "dev",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"inherits": [
"std"
"std",
"vcpkg"
],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_FLAGS": "-Wall -Wextra -Wpedantic -fdiagnostics-color=always",
"GLFW_BUILD_X11": "OFF"
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"CMAKE_CXX_FLAGS": "-Wall -Wextra -Wpedantic -fdiagnostics-color=always"
}
}
]