FindSQLite3: Sync documentation

- Added intro code block showing how to use this module.
- Resorted variables and synced their descriptions with other similar
  find modules.
This commit is contained in:
Peter Kokot committed 2025-08-02 04:19:03 +02:00
1 parent a4ef872a24
commit d55fffca3e
1 file changed
+19 -10
+19 -10
View File
@@ -7,9 +7,14 @@ FindSQLite3
.. versionadded:: 3.14
Finds the SQLite 3 library. SQLite is a small, fast, self-contained,
high-reliability, and full-featured SQL database engine written in C, intended
for embedding in applications.
Finds the SQLite 3 library:
.. code-block:: cmake
find_package(SQLite3 [<version>] [...])
SQLite is a small, fast, self-contained, high-reliability, and full-featured
SQL database engine written in C, intended for embedding in applications.
Imported Targets
^^^^^^^^^^^^^^^^
@@ -23,17 +28,21 @@ This module provides the following :ref:`Imported Targets`:
Result Variables
^^^^^^^^^^^^^^^^
This module sets the following variables:
This module defines the following variables:
``SQLite3_FOUND``
Boolean indicating whether (the requested version of) SQLite library is
found.
``SQLite3_VERSION``
The version of SQLite library found.
``SQLite3_INCLUDE_DIRS``
Include directories containing the ``sqlite3.h`` and related headers needed
to use SQLite.
Include directories containing the ``<sqlite3.h>`` and related headers
needed to use SQLite.
``SQLite3_LIBRARIES``
Libraries needed to link against to use SQLite.
``SQLite3_VERSION``
Version of the SQLite library found.
``SQLite3_FOUND``
Boolean indicating whether the SQLite library is found.
Examples
^^^^^^^^