diff --git a/CMakePresets.json b/CMakePresets.json new file mode 100644 index 0000000..e1b73b5 --- /dev/null +++ b/CMakePresets.json @@ -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" + } + } + ] +} diff --git a/compile_commands.json b/compile_commands.json index 25eb4b2..47f7a28 120000 --- a/compile_commands.json +++ b/compile_commands.json @@ -1 +1 @@ -build/compile_commands.json \ No newline at end of file +out/build/build/compile_commands.json \ No newline at end of file