Add integration guidelines

This commit is contained in:
2026-02-28 02:54:08 -04:00
parent dab33d0f10
commit 5ff518d49a
2 changed files with 58 additions and 21 deletions

View File

@@ -1,21 +0,0 @@
# CppBeSSOT CMake Module
## Quick include from a parent project
```cmake
# Optional overrides before include:
set(CPPBESSOT_WORKDIR "db")
set(DB_SCHEMA_VERSION_TO_GENERATE "v1.1")
set(DB_SCHEMA_MIGRATION_VERSION_FROM "v1.1")
set(DB_SCHEMA_MIGRATION_VERSION_TO "v1.2")
include(path/to/cppbessot/cmake/cppbessot/CppBeSSOT.cmake)
```
By default the include auto-registers targets and libraries. To disable auto setup:
```cmake
set(CPPBESSOT_AUTO_ENABLE OFF)
include(path/to/cppbessot/cmake/cppbessot/CppBeSSOT.cmake)
cppbessot_enable()
```