2016-07-26 17:53:11 +03:00
|
|
|
# (c) 2014 Copyright ownCloud GmbH
|
2014-09-18 14:26:55 +04:00
|
|
|
# Redistribution and use is allowed according to the terms of the BSD license.
|
|
|
|
# For details see the accompanying COPYING* file.
|
|
|
|
|
Add doc cmake targets (HTML, PDF, QtHelp, CHM, man)
make doc will build all of the above, except for CHM,
which needs manual preparation and can be built with
make doc-chm. See doc/scripts/README.rst for details.
We do our best to ensure to detect the required tools
before adding targets, so a build should always succeed.
Exception: On Debian and Ubuntu, the following packages are
required to build the PDF target (in addition to pdflatex
itself, which is autodetected):
* texlive-latex-recommended
* texlive-latex-extra
* texlive-fonts-recommended
If pdflatex is present, but those are not, the doc target
will fail.
Results can be found in $BUILDDIR/doc/$format.
2012-11-25 03:21:27 +04:00
|
|
|
find_program(SPHINX_EXECUTABLE NAMES sphinx-build
|
|
|
|
HINTS
|
|
|
|
$ENV{SPHINX_DIR}
|
|
|
|
PATH_SUFFIXES bin
|
|
|
|
DOC "Sphinx documentation generator"
|
|
|
|
)
|
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
|
|
|
|
find_package_handle_standard_args(Sphinx DEFAULT_MSG
|
|
|
|
SPHINX_EXECUTABLE
|
|
|
|
)
|
|
|
|
|
|
|
|
mark_as_advanced(
|
|
|
|
SPHINX_EXECUTABLE
|
|
|
|
)
|