A cmake
module to locate latexmk
and provide a function to add a LaTeX document to the build. The goal of this module is to provide a cmake
interface similar to add_executable
or add_library
where one specified the TARGET
followed by the sources This would let latexmk
do what it does and manage the main LaTeX dependencies while providing a cmake
-like interface. The pie in the sky interface would be
add_document(main.pdf main.tex [input1.tex input2.tex ...])
However, this it not practical as the exact output can be customized via the latexmkrc
(not limited to specifying the PDF generation via pdflatex
, lualatex
, or xelatex
). This module aims to add a proper cmake
target assuming the user has not added too many customizations to their latexmkrc
.
Use cmake
to generate the FindLatexmk.cmake
and then place it on the cmake
search path (CMAKE_MODULE_PATH
) and the add find_package(Latexmk)
to you CMakeLists.txt
. Alternatively, you can place the FindLatexmk.cmake
in your project and then include
it in your CMakeLists.txt
.
Distributed under the OSI-approved BSD 2-Clause License. See the module source for details.
- Moved development to
trunk
0.2 - 2021-04-24
- Rudimentary tests to check the correct output is generated
- A website
- Generate the target based on the engine instead of from the command
- Moved the usage to a separate file
- Use
cmake
to generate the final module file
- Corrected check for
Latexmk_DIR
0.1 - 2020-09-05
- Functional release