summaryrefslogtreecommitdiff
path: root/cmake/Modules
diff options
context:
space:
mode:
authorBen Reynwar2012-05-21 09:30:58 -0700
committerBen Reynwar2012-05-21 09:30:58 -0700
commit7f1178d2f4f51e1ad28a95d3a209ca0484839a9e (patch)
tree399192b90a15a7da58bdd03dff3e3e4e83c614ee /cmake/Modules
parent3ff3257f9fdbf3cd3f88036ebdbf36c70891a53e (diff)
parent91c3d95daa974fbbab11ac26a3a30c11ca35a5cd (diff)
downloadgnuradio-7f1178d2f4f51e1ad28a95d3a209ca0484839a9e.tar.gz
gnuradio-7f1178d2f4f51e1ad28a95d3a209ca0484839a9e.tar.bz2
gnuradio-7f1178d2f4f51e1ad28a95d3a209ca0484839a9e.zip
Merge remote-tracking branch 'trondeau-github/sphinxdocs' into sphinxdocs
Diffstat (limited to 'cmake/Modules')
-rw-r--r--cmake/Modules/FindSphinx.cmake37
1 files changed, 37 insertions, 0 deletions
diff --git a/cmake/Modules/FindSphinx.cmake b/cmake/Modules/FindSphinx.cmake
new file mode 100644
index 000000000..da12ee93d
--- /dev/null
+++ b/cmake/Modules/FindSphinx.cmake
@@ -0,0 +1,37 @@
+# - This module looks for Sphinx
+# Find the Sphinx documentation generator
+#
+# This modules defines
+# SPHINX_EXECUTABLE
+# SPHINX_FOUND
+
+#=============================================================================
+# Copyright 2002-2009 Kitware, Inc.
+# Copyright 2009-2011 Peter Colberg
+#
+# Distributed under the OSI-approved BSD License (the "License");
+# see accompanying file COPYING-CMAKE-SCRIPTS for details.
+#
+# This software is distributed WITHOUT ANY WARRANTY; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+# See the License for more information.
+#=============================================================================
+# (To distribute this file outside of CMake, substitute the full
+# License text for the above reference.)
+
+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
+)