summaryrefslogtreecommitdiffstats
path: root/Modules/FindLATEX.cmake
diff options
context:
space:
mode:
authorChristoph GrĂ¼ninger <gruenich@dune-project.org>2015-01-10 09:56:35 (GMT)
committerBrad King <brad.king@kitware.com>2015-01-11 20:41:06 (GMT)
commit222ee2c05932489f6b5879e423c3f07fd7f67996 (patch)
tree7190c952ddae93dceeddebbf920e360989352fbf /Modules/FindLATEX.cmake
parent07a3f9ad17194eda4a8df48351f25682aab50345 (diff)
downloadCMake-222ee2c05932489f6b5879e423c3f07fd7f67996.zip
CMake-222ee2c05932489f6b5879e423c3f07fd7f67996.tar.gz
CMake-222ee2c05932489f6b5879e423c3f07fd7f67996.tar.bz2
FindLATEX: Add components PDFtoPS and HTLATEX
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 db4902f..34a4402 100644
--- a/Modules/FindLATEX.cmake
+++ b/Modules/FindLATEX.cmake
@@ -19,7 +19,9 @@
# DVIPS_CONVERTER: path to the DVIPS converter
# DVIPDF_CONVERTER: path to the DVIPDF converter
# PS2PDF_CONVERTER: path to the PS2PDF converter
+# PDFTOPS_CONVERTER: path to the pdftops converter
# LATEX2HTML_CONVERTER: path to the LaTeX2Html converter
+# HTLATEX_COMPILER: path to the htlatex compiler
#
# Possible components are::
#
@@ -29,7 +31,9 @@
# DVIPS
# DVIPDF
# PS2PDF
+# PDFTOPS
# LATEX2HTML
+# HTLATEX
#
# Example Usages::
#
@@ -167,6 +171,18 @@ else()
set(LATEX_PS2PDF_FOUND FALSE)
endif()
+# find pdftops
+find_program(PDFTOPS_CONVERTER
+ NAMES pdftops
+ PATHS ${MIKTEX_BINARY_PATH}
+ /usr/bin
+)
+if (PDFTOPS_CONVERTER)
+ set(LATEX_PDFTOPS_FOUND TRUE)
+else()
+ set(LATEX_PDFTOPS_FOUND FALSE)
+endif()
+
# find latex2html
find_program(LATEX2HTML_CONVERTER
NAMES latex2html
@@ -179,6 +195,18 @@ else()
set(LATEX_LATEX2HTML_FOUND FALSE)
endif()
+# find htlatex
+find_program(HTLATEX_COMPILER
+ NAMES htlatex
+ PATHS ${MIKTEX_BINARY_PATH}
+ /usr/bin
+)
+if (HTLATEX_COMPILER)
+ set(LATEX_HTLATEX_FOUND TRUE)
+else()
+ set(LATEX_HTLATEX_FOUND FALSE)
+endif()
+
mark_as_advanced(
LATEX_COMPILER
@@ -188,7 +216,9 @@ mark_as_advanced(
DVIPS_CONVERTER
DVIPDF_CONVERTER
PS2PDF_CONVERTER
+ PDFTOPS_CONVERTER
LATEX2HTML_CONVERTER
+ HTLATEX_COMPILER
)
# handle variables for found Latex and its components