cmake preset

This commit is contained in:
Eric Mertens 2023-01-25 16:49:54 -05:00
parent d0c1384d7c
commit eade441ba2
2 changed files with 18 additions and 1 deletions

17
CMakePresets.json Normal file
View File

@ -0,0 +1,17 @@
{
"version": 2,
"configurePresets": [
{
"name": "build",
"displayName": "Configure preset using toolchain file",
"description": "Sets Ninja generator, build and install directory",
"generator": "Ninja Multi-Config",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
"CMAKE_EXPORT_COMPILE_COMMANDS": "On"
}
}
]
}

View File

@ -1 +1 @@
build/compile_commands.json out/build/build/compile_commands.json