Skip to content

Conversation

@MeanSquaredError
Copy link
Contributor

@MeanSquaredError MeanSquaredError commented Dec 17, 2025

This PR exports the CMake module targets and documents them. I built and tested it with

cmake -B build -G Ninja -DBUILD_POSTGRESQL_CONNECTOR=ON -DBUILD_SQLITE3_CONNECTOR=ON -DBUILD_MYSQL_CONNECTOR=ON -DBUILD_TESTING=ON -DDEPENDENCY_CHECK=ON

(all connectors included, modules disabled)

and

cmake -B build -G Ninja -DBUILD_POSTGRESQL_CONNECTOR=ON -DBUILD_SQLITE3_CONNECTOR=ON -DBUILD_MYSQL_CONNECTOR=ON -DBUILD_TESTING=ON -DDEPENDENCY_CHECK=ON -DBUILD_WITH_MODULES=ON

(all connectors included, modules enabled)

So hopefully it doesn't break anything.

The test targets could be renamed or aliased as well to make their names more in-line with the names of the module targets, but that's not urgent and can wait until someone finds the time to do that :-)

- Cleanup the code that creates the module targets
- Rename the module targets to sqlpp23::xxxxx_module
- When exporting module targets also export additional information that allows the targets to be imported.
@MeanSquaredError MeanSquaredError changed the title CMakeLists: Add module targets. Document the changes CMakeLists: Export the module targets. Document the changes Dec 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant