FindLATEX: Add components Biber and xindy

This commit is contained in:
Christoph Grüninger 2015-01-10 12:10:03 +01:00 committed by Brad King
parent 222ee2c059
commit c32f691944
1 changed files with 30 additions and 0 deletions

View File

@ -15,7 +15,9 @@
# LATEX_COMPILER: path to the LaTeX compiler # LATEX_COMPILER: path to the LaTeX compiler
# PDFLATEX_COMPILER: path to the PdfLaTeX compiler # PDFLATEX_COMPILER: path to the PdfLaTeX compiler
# BIBTEX_COMPILER: path to the BibTeX compiler # BIBTEX_COMPILER: path to the BibTeX compiler
# BIBER_COMPILER: path to the Biber compiler
# MAKEINDEX_COMPILER: path to the MakeIndex compiler # MAKEINDEX_COMPILER: path to the MakeIndex compiler
# XINDY_COMPILER: path to the xindy compiler
# DVIPS_CONVERTER: path to the DVIPS converter # DVIPS_CONVERTER: path to the DVIPS converter
# DVIPDF_CONVERTER: path to the DVIPDF converter # DVIPDF_CONVERTER: path to the DVIPDF converter
# PS2PDF_CONVERTER: path to the PS2PDF converter # PS2PDF_CONVERTER: path to the PS2PDF converter
@ -27,7 +29,9 @@
# #
# PDFLATEX # PDFLATEX
# BIBTEX # BIBTEX
# BIBER
# MAKEINDEX # MAKEINDEX
# XINDY
# DVIPS # DVIPS
# DVIPDF # DVIPDF
# PS2PDF # PS2PDF
@ -117,6 +121,18 @@ else()
set(LATEX_BIBTEX_FOUND FALSE) set(LATEX_BIBTEX_FOUND FALSE)
endif() 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 makeindex
find_program(MAKEINDEX_COMPILER find_program(MAKEINDEX_COMPILER
NAMES makeindex NAMES makeindex
@ -129,6 +145,18 @@ else()
set(LATEX_MAKEINDEX_FOUND FALSE) set(LATEX_MAKEINDEX_FOUND FALSE)
endif() 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 dvips
find_program(DVIPS_CONVERTER find_program(DVIPS_CONVERTER
NAMES dvips NAMES dvips
@ -212,7 +240,9 @@ mark_as_advanced(
LATEX_COMPILER LATEX_COMPILER
PDFLATEX_COMPILER PDFLATEX_COMPILER
BIBTEX_COMPILER BIBTEX_COMPILER
BIBER_COMPILER
MAKEINDEX_COMPILER MAKEINDEX_COMPILER
XINDY_COMPILER
DVIPS_CONVERTER DVIPS_CONVERTER
DVIPDF_CONVERTER DVIPDF_CONVERTER
PS2PDF_CONVERTER PS2PDF_CONVERTER