Added Sphinx documentation generation to CMake build system.
authorReid Kleckner <reid@kleckner.net>
Fri, 18 Apr 2014 21:45:25 +0000 (21:45 +0000)
committerReid Kleckner <reid@kleckner.net>
Fri, 18 Apr 2014 21:45:25 +0000 (21:45 +0000)
commit9f5eb637cb1758a5efa38845f4ce9c5f600dd99b
treea0f01633031633d481a7b8a19fe5b83c25324378
parentd010999abeba1635d4e5c38926c351b2c5ef6544
Added Sphinx documentation generation to CMake build system.

The option LLVM_ENABLE_SPHINX option enables the "docs-llvm-html",
"docs-llvm-man" targets but does not build them by default. The
following CMake options have been added that control what targets are
made available

SPHINX_OUTPUT_HTML
SPHINX_OUTPUT_MAN

If LLVM_BUILD_DOCS is enabled then the enabled docs-llvm-* targets will
be built by default and if ``make install`` is run then docs-llvm-html
and docs-llvm-man will be installed (tested on Linux only).

The add_sphinx_target function is in its own file so it can be included
by other projects that use Sphinx for their documentation.

Patch by Daniel Liew <daniel.liew@imperial.ac.uk>!

llvm-svn: 206655
llvm/CMakeLists.txt
llvm/cmake/config-ix.cmake
llvm/cmake/modules/AddSphinxTarget.cmake [new file with mode: 0644]
llvm/cmake/modules/FindSphinx.cmake [new file with mode: 0644]
llvm/docs/CMakeLists.txt