diff options
author | Christoph GrĂ¼ninger <gruenich@dune-project.org> | 2015-01-10 13:48:31 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-01-11 20:42:12 (GMT) |
commit | 89e08de8c2e7833461032c9309e1a6416ba35438 (patch) | |
tree | 2c6bbc381323a02332903c8968069ff58277d6ca | |
parent | c32f691944b6b7629de7e6c1366d269a6b54fd8d (diff) | |
download | CMake-89e08de8c2e7833461032c9309e1a6416ba35438.zip CMake-89e08de8c2e7833461032c9309e1a6416ba35438.tar.gz CMake-89e08de8c2e7833461032c9309e1a6416ba35438.tar.bz2 |
FindLATEX: Add components for XeLaTeX and LuaLaTeX
-rw-r--r-- | Modules/FindLATEX.cmake | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/Modules/FindLATEX.cmake b/Modules/FindLATEX.cmake index 96acbb9..ae83733 100644 --- a/Modules/FindLATEX.cmake +++ b/Modules/FindLATEX.cmake @@ -14,6 +14,8 @@ # LATEX_<component>_FOUND: whether found <component> # LATEX_COMPILER: path to the LaTeX compiler # PDFLATEX_COMPILER: path to the PdfLaTeX compiler +# XELATEX_COMPILER: path to the XeLaTeX compiler +# LUALATEX_COMPILER: path to the LuaLaTeX compiler # BIBTEX_COMPILER: path to the BibTeX compiler # BIBER_COMPILER: path to the Biber compiler # MAKEINDEX_COMPILER: path to the MakeIndex compiler @@ -28,6 +30,8 @@ # Possible components are:: # # PDFLATEX +# XELATEX +# LUALATEX # BIBTEX # BIBER # MAKEINDEX @@ -46,7 +50,8 @@ # find_package(LATEX COMPONENTS BIBTEX PS2PDF) #============================================================================= -# Copyright 2002-2014 Kitware, Inc. +# Copyright 2002-2015 Kitware, Inc. +# Copyright 2014-2015 Christoph GrĂ¼ninger <foss@grueninger.de> # # Distributed under the OSI-approved BSD License (the "License"); # see accompanying file Copyright.txt for details. @@ -109,6 +114,30 @@ else() set(LATEX_PDFLATEX_FOUND FALSE) endif() +# find xelatex +find_program(XELATEX_COMPILER + NAMES xelatex + PATHS ${MIKTEX_BINARY_PATH} + /usr/bin +) +if (XELATEX_COMPILER) + set(LATEX_XELATEX_FOUND TRUE) +else() + set(LATEX_XELATEX_FOUND FALSE) +endif() + +# find lualatex +find_program(LUALATEX_COMPILER + NAMES lualatex + PATHS ${MIKTEX_BINARY_PATH} + /usr/bin +) +if (LUALATEX_COMPILER) + set(LATEX_LUALATEX_FOUND TRUE) +else() + set(LATEX_LUALATEX_FOUND FALSE) +endif() + # find bibtex find_program(BIBTEX_COMPILER NAMES bibtex @@ -239,6 +268,8 @@ endif() mark_as_advanced( LATEX_COMPILER PDFLATEX_COMPILER + XELATEX_COMPILER + LUALATEX_COMPILER BIBTEX_COMPILER BIBER_COMPILER MAKEINDEX_COMPILER |