OpenJK
OpenJK copied to clipboard
[Shared] add a custom CMake target to copy compilation DB from build dir to source dir
Configure with -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
to generate the compilation DB.
This PR will additionally copy this from the build directory to the source directory.
For example, this will provide better VSCodium support when using clangd instead of MS' C++ extension.
see https://clang.llvm.org/docs/JSONCompilationDatabase.html for further details