diff cmake/FindSphinx.cmake @ 933:af27328bea9d

(issue89) Add sphinx integration for the build system.
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 22 Aug 2014 17:06:56 +0200
parents
children a974b61a5cce
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cmake/FindSphinx.cmake	Fri Aug 22 17:06:56 2014 +0200
@@ -0,0 +1,14 @@
+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)

http://wald.intevation.org/projects/trustbridge/