Skip to content

algoritnl/sqlite-cmake

Repository files navigation

sqlite-cmake: A modern CMake build system for SQLite

REUSE status pre-commit.ci status CI Test CMake 3.16...4.3+

A modern CMake build system to build, install, and integrate the official SQLite Amalgamation into C/C++ projects.

Features

  • Drop-in replacement: Includes vendored SQLite sources in the source/ directory.
  • Integrity Verification: Includes a SHA3-256 checksum file source/sqlite3.sha3sum to verify code authenticity.
  • Highly Configurable: Native CMake options mapping directly to the official SQLite compile-time options.
  • Customizable: Swap the included sources with a customized SQLite amalgamation if needed.
  • Modern CMake: Provides standard CMake export targets for seamless integration.

Usage

After building and installing this project, you can integrate it into your own CMake project using the standard CONFIG mode:

find_package(SQLite3 CONFIG REQUIRED)
target_link_libraries(your_target PRIVATE SQLite3::SQLite3)

Other supported integrations include FetchContent and add_subdirectory.

Licensing

This repository uses a dual-license structure:

  • The CMake build configurations and tools are dedicated to the public domain under CC0-1.0.
  • The SQLite source code files in the source/ directory are licensed under the official SQLite Blessing (blessing).

This project is fully REUSE compliant.

Legal Disclaimer

This repository is an independent open-source project and is not affiliated with, endorsed by, or associated with D. Richard Hipp or the official SQLite contributors. The term "SQLite" and any associated logos are trademarks of Hipp, Wyrick & Company, Inc., and are used in this repository solely for nominative purposes to identify the software being configured and built.

About

A CMake build system for SQLite

Topics

Resources

License

Code of conduct

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors