File: FindLatex.cmake

package info (click to toggle)
ecbuild 3.7.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,564 kB
  • sloc: sh: 908; perl: 734; cpp: 454; f90: 430; python: 383; ansic: 297; fortran: 43; makefile: 15
file content (33 lines) | stat: -rw-r--r-- 984 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# (C) Copyright 2013 ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
# In applying this licence, ECMWF does not waive the privileges and immunities
# granted to it by virtue of its status as an intergovernmental organisation nor
# does it submit to any jurisdiction.

###############################################################################

# find latex libraries
FIND_PROGRAM (PDFLATEX
              NAMES pdflatex
              PATHS /usr/bin/)
FIND_PROGRAM (BIBTEX
              NAMES bibtex
              PATHS /usr/bin/)
FIND_PROGRAM (MAKEINDEX
              NAMES makeindex
              PATHS /usr/bin/)
FIND_PROGRAM (HTLATEX
              NAMES htlatex
              PATHS /usr/bin/)

if ( PDFLATEX AND BIBTEX AND MAKEINDEX AND HTLATEX )
    set( Latex_FOUND TRUE )
    set( LATEX_FOUND TRUE )
endif()


mark_as_advanced(PDFLATEX BIBTEX MAKEINDEX HTLATEX)