From c32f691944b6b7629de7e6c1366d269a6b54fd8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20Gr=C3=BCninger?= Date: Sat, 10 Jan 2015 12:10:03 +0100 Subject: FindLATEX: Add components Biber and xindy --- Modules/FindLATEX.cmake | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/Modules/FindLATEX.cmake b/Modules/FindLATEX.cmake index 34a4402..96acbb9 100644 --- a/Modules/FindLATEX.cmake +++ b/Modules/FindLATEX.cmake @@ -15,7 +15,9 @@ # LATEX_COMPILER: path to the LaTeX compiler # PDFLATEX_COMPILER: path to the PdfLaTeX compiler # BIBTEX_COMPILER: path to the BibTeX compiler +# BIBER_COMPILER: path to the Biber compiler # MAKEINDEX_COMPILER: path to the MakeIndex compiler +# XINDY_COMPILER: path to the xindy compiler # DVIPS_CONVERTER: path to the DVIPS converter # DVIPDF_CONVERTER: path to the DVIPDF converter # PS2PDF_CONVERTER: path to the PS2PDF converter @@ -27,7 +29,9 @@ # # PDFLATEX # BIBTEX +# BIBER # MAKEINDEX +# XINDY # DVIPS # DVIPDF # PS2PDF @@ -117,6 +121,18 @@ else() set(LATEX_BIBTEX_FOUND FALSE) endif() +# find biber +find_program(BIBER_COMPILER + NAMES biber + PATHS ${MIKTEX_BINARY_PATH} + /usr/bin +) +if (BIBER_COMPILER) + set(LATEX_BIBER_FOUND TRUE) +else() + set(LATEX_BIBER_FOUND FALSE) +endif() + # find makeindex find_program(MAKEINDEX_COMPILER NAMES makeindex @@ -129,6 +145,18 @@ else() set(LATEX_MAKEINDEX_FOUND FALSE) endif() +# find xindy +find_program(XINDY_COMPILER + NAMES xindy + PATHS ${MIKTEX_BINARY_PATH} + /usr/bin +) +if (XINDY_COMPILER) + set(LATEX_XINDY_FOUND TRUE) +else() + set(LATEX_XINDY_FOUND FALSE) +endif() + # find dvips find_program(DVIPS_CONVERTER NAMES dvips @@ -212,7 +240,9 @@ mark_as_advanced( LATEX_COMPILER PDFLATEX_COMPILER BIBTEX_COMPILER + BIBER_COMPILER MAKEINDEX_COMPILER + XINDY_COMPILER DVIPS_CONVERTER DVIPDF_CONVERTER PS2PDF_CONVERTER -- cgit v0.12