Merge topic 'patch-FindMotif'

d08ff1356d FindMotif: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10538
This commit is contained in:
Brad King
2025-03-28 13:07:05 +00:00
committed by Kitware Robot

View File

@@ -5,19 +5,37 @@
FindMotif
---------
Try to find Motif (or lesstif)
Finds Motif (or LessTif) graphical user interface toolkit.
Once done this will define:
Result Variables
^^^^^^^^^^^^^^^^
::
This module defines the following variables:
MOTIF_FOUND - system has MOTIF
MOTIF_INCLUDE_DIR - include paths to use Motif
MOTIF_LIBRARIES - Link these to use Motif
``Motif_FOUND``
Boolean indicating whether the Motif was found. For backward compatibility,
the ``MOTIF_FOUND`` variable is also set to the same value.
Cache Variables
^^^^^^^^^^^^^^^
The following cache variables may also be set:
``MOTIF_LIBRARIES``
Libraries needed to link to Motif.
``MOTIF_INCLUDE_DIR``
Include directories needed to use Motif.
Examples
^^^^^^^^
Finding Motif:
.. code-block:: cmake
find_package(Motif)
#]=======================================================================]
set(MOTIF_FOUND 0)
if(UNIX)
find_path(MOTIF_INCLUDE_DIR
Xm/Xm.h