FindLatexMk =========== Find LatexMk, the Perl-based LaTeX build tool. This find-module locates the ``latexmk`` executable and extracts version information from ``latexmk --version`` output. Result Variables ^^^^^^^^^^^^^^^^ This module defines the following variables: .. cmake:variable:: LATEXMK_FOUND Boolean result indicating whether the ``latexmk`` executable was found. .. cmake:variable:: LATEXMK_EXECUTABLE Full path to the discovered ``latexmk`` executable. .. cmake:variable:: LATEXMK_VERSION_STRING Version string reported by the detected ``latexmk`` executable. .. cmake:variable:: LATEXMK_VERSION_MAJOR Major version component extracted from ``LATEXMK_VERSION_STRING``. .. cmake:variable:: LATEXMK_VERSION_MINOR Minor version component extracted from ``LATEXMK_VERSION_STRING``. Hints ^^^^^ The following variables may be set to influence this module's behavior: .. cmake:variable:: LATEXMK_ROOT Preferred search prefix for the ``latexmk`` executable. .. cmake:variable:: LATEXMK_DIR Alternative search prefix for the ``latexmk`` executable. This is treated like ``LATEXMK_ROOT``.