From d55fffca3e2c3b89899e06343469faa064e830d4 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Sat, 2 Aug 2025 04:19:03 +0200 Subject: [PATCH] FindSQLite3: Sync documentation - Added intro code block showing how to use this module. - Resorted variables and synced their descriptions with other similar find modules. --- Modules/FindSQLite3.cmake | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/Modules/FindSQLite3.cmake b/Modules/FindSQLite3.cmake index 914b84a12d..b7fe4b1d75 100644 --- a/Modules/FindSQLite3.cmake +++ b/Modules/FindSQLite3.cmake @@ -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 [] [...]) + +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 ```` 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 ^^^^^^^^