summaryrefslogtreecommitdiffstats
path: root/Modules/FindLATEX.cmake
diff options
context:
space:
mode:
authorChristoph GrĂ¼ninger <gruenich@dune-project.org>2015-01-10 11:10:03 (GMT)
committerBrad King <brad.king@kitware.com>2015-01-11 20:41:37 (GMT)
commitc32f691944b6b7629de7e6c1366d269a6b54fd8d (patch)
treecbacebae3533aab6c937624ab4b68c3d7f06c8b6 /Modules/FindLATEX.cmake
parent222ee2c05932489f6b5879e423c3f07fd7f67996 (diff)
downloadCMake-c32f691944b6b7629de7e6c1366d269a6b54fd8d.zip
CMake-c32f691944b6b7629de7e6c1366d269a6b54fd8d.tar.gz
CMake-c32f691944b6b7629de7e6c1366d269a6b54fd8d.tar.bz2
FindLATEX: Add components Biber and xindy
Diffstat (limited to 'Modules/FindLATEX.cmake')
-rw-r--r--Modules/FindLATEX.cmake30
1 files changed, 30 insertions, 0 deletions
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