Template project for building CMake-based PostgreSQL extensions.
Use C++ Modules to build the extensions. so you need to have:
- CMake version 3.28 or later
- GCC version 14 or clang-17 later.
- PostgreSQL server version 16 or later. (meson build)
You can install these dependencies on Ubuntu 24.04 in build.yml
Make sure Dependencies and do the following steps:
cmake --preset ClangDebug
cmake --build build/ClangDebug --target install
cmake --build build/ClangDebug --target testIf you want to run with coverage, you can use the following command:
cmake --preset Coverage
cmake --build build/Coverage --target install
cmake --build build/Coverage --target test
grcov . -b build/Coverage -s . -o coverage -t html --branch --ignore-not-existing- memory check
- cpp source code test
- error handling
- ...