Skip to content

Instantly share code, notes, and snippets.

@Riztazz

Riztazz/.json Secret

Last active March 7, 2024 14:26
Show Gist options
  • Save Riztazz/244d6d7b0af6e236d5660c64b8c7415b to your computer and use it in GitHub Desktop.
Save Riztazz/244d6d7b0af6e236d5660c64b8c7415b to your computer and use it in GitHub Desktop.
CMakePreset.json
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 21,
"patch": 0
},
"configurePresets": [
{
"name": "ninja-win64",
"displayName": "Windows x64",
"binaryDir": "${sourceDir}/.build/${presetName}",
"installDir": "${sourceDir}/bin/",
"generator": "Ninja Multi-Config",
"architecture": {
"value": "x64",
"strategy": "external"
},
"cacheVariables": {
"VCPKG_INSTALLED_DIR": "${sourceDir}/.build/vcpkg_installed",
"VCPKG_TARGET_TRIPLET": "x64-windows",
"VCPKG_HOST_TRIPLET": "x64-windows",
"VCPKG_OVERLAY_PORTS": {
"type": "FILEPATH",
"value": "${sourceDir}/.vcpkg/ports"
},
"VCPKG_OVERLAY_TRIPLETS": {
"type": "FILEPATH",
"value": "${sourceDir}/.vcpkg/triplets"
},
"CMAKE_CONFIGURATION_TYPES": "Debug;Release",
"CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG": {
"type": "FILEPATH",
"value": "${sourceDir}/bin/Debug"
},
"CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE": {
"type": "FILEPATH",
"value": "${sourceDir}/bin/Release"
},
"CMAKE_INSTALL_PREFIX": {
"type": "FILEPATH",
"value": "${sourceDir}/install"
}
}
}
],
"buildPresets": [
{
"name": "ninja-win64-debug",
"displayName": "Debug",
"configurePreset": "ninja-win64",
"configuration": "Debug"
},
{
"name": "ninja-win64-release",
"displayName": "Release",
"configurePreset": "ninja-win64",
"configuration": "Release"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment