diff options
Diffstat (limited to 'Modules/FindLATEX.cmake')
-rw-r--r-- | Modules/FindLATEX.cmake | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/Modules/FindLATEX.cmake b/Modules/FindLATEX.cmake index 7997ae9c8f..020272724a 100644 --- a/Modules/FindLATEX.cmake +++ b/Modules/FindLATEX.cmake @@ -24,97 +24,97 @@ # (To distribute this file outside of CMake, substitute the full # License text for the above reference.) -IF (WIN32) +if (WIN32) # Try to find the MikTex binary path (look for its package manager). - FIND_PATH(MIKTEX_BINARY_PATH mpm.exe + find_path(MIKTEX_BINARY_PATH mpm.exe "[HKEY_LOCAL_MACHINE\\SOFTWARE\\MiK\\MiKTeX\\CurrentVersion\\MiKTeX;Install Root]/miktex/bin" DOC "Path to the MikTex binary directory." ) - MARK_AS_ADVANCED(MIKTEX_BINARY_PATH) + mark_as_advanced(MIKTEX_BINARY_PATH) # Try to find the GhostScript binary path (look for gswin32). - GET_FILENAME_COMPONENT(GHOSTSCRIPT_BINARY_PATH_FROM_REGISTERY_8_00 + get_filename_component(GHOSTSCRIPT_BINARY_PATH_FROM_REGISTERY_8_00 "[HKEY_LOCAL_MACHINE\\SOFTWARE\\AFPL Ghostscript\\8.00;GS_DLL]" PATH ) - GET_FILENAME_COMPONENT(GHOSTSCRIPT_BINARY_PATH_FROM_REGISTERY_7_04 + get_filename_component(GHOSTSCRIPT_BINARY_PATH_FROM_REGISTERY_7_04 "[HKEY_LOCAL_MACHINE\\SOFTWARE\\AFPL Ghostscript\\7.04;GS_DLL]" PATH ) - FIND_PATH(GHOSTSCRIPT_BINARY_PATH gswin32.exe + find_path(GHOSTSCRIPT_BINARY_PATH gswin32.exe ${GHOSTSCRIPT_BINARY_PATH_FROM_REGISTERY_8_00} ${GHOSTSCRIPT_BINARY_PATH_FROM_REGISTERY_7_04} DOC "Path to the GhostScript binary directory." ) - MARK_AS_ADVANCED(GHOSTSCRIPT_BINARY_PATH) + mark_as_advanced(GHOSTSCRIPT_BINARY_PATH) - FIND_PATH(GHOSTSCRIPT_LIBRARY_PATH ps2pdf13.bat + find_path(GHOSTSCRIPT_LIBRARY_PATH ps2pdf13.bat "${GHOSTSCRIPT_BINARY_PATH}/../lib" DOC "Path to the GhostScript library directory." ) - MARK_AS_ADVANCED(GHOSTSCRIPT_LIBRARY_PATH) + mark_as_advanced(GHOSTSCRIPT_LIBRARY_PATH) -ENDIF (WIN32) +endif (WIN32) -FIND_PROGRAM(LATEX_COMPILER +find_program(LATEX_COMPILER NAMES latex PATHS ${MIKTEX_BINARY_PATH} /usr/bin ) -FIND_PROGRAM(PDFLATEX_COMPILER +find_program(PDFLATEX_COMPILER NAMES pdflatex PATHS ${MIKTEX_BINARY_PATH} /usr/bin ) -FIND_PROGRAM(BIBTEX_COMPILER +find_program(BIBTEX_COMPILER NAMES bibtex PATHS ${MIKTEX_BINARY_PATH} /usr/bin ) -FIND_PROGRAM(MAKEINDEX_COMPILER +find_program(MAKEINDEX_COMPILER NAMES makeindex PATHS ${MIKTEX_BINARY_PATH} /usr/bin ) -FIND_PROGRAM(DVIPS_CONVERTER +find_program(DVIPS_CONVERTER NAMES dvips PATHS ${MIKTEX_BINARY_PATH} /usr/bin ) -FIND_PROGRAM(DVIPDF_CONVERTER +find_program(DVIPDF_CONVERTER NAMES dvipdfm dvipdft dvipdf PATHS ${MIKTEX_BINARY_PATH} /usr/bin ) -IF (WIN32) - FIND_PROGRAM(PS2PDF_CONVERTER +if (WIN32) + find_program(PS2PDF_CONVERTER NAMES ps2pdf14.bat PATHS ${GHOSTSCRIPT_LIBRARY_PATH} ) -ELSE (WIN32) - FIND_PROGRAM(PS2PDF_CONVERTER +else (WIN32) + find_program(PS2PDF_CONVERTER NAMES ps2pdf14 ps2pdf ) -ENDIF (WIN32) +endif (WIN32) -FIND_PROGRAM(LATEX2HTML_CONVERTER +find_program(LATEX2HTML_CONVERTER NAMES latex2html PATHS ${MIKTEX_BINARY_PATH} /usr/bin ) -MARK_AS_ADVANCED( +mark_as_advanced( LATEX_COMPILER PDFLATEX_COMPILER BIBTEX_COMPILER |