aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/FindSphinx.cmake
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-11-11 03:44:47 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2014-11-11 04:19:56 +0100
commit93dc9656e2513d3b350d6a114c92aee64eb76358 (patch)
tree7eca7fa68c76c38c9b16f3ec94edbe715460e7b8 /cmake/FindSphinx.cmake
parentd40925ddfebdc64e113f63a16beb5b86edf5c297 (diff)
downloadyawa-93dc9656e2513d3b350d6a114c92aee64eb76358.tar.xz
Add initial manapage
Diffstat (limited to 'cmake/FindSphinx.cmake')
-rw-r--r--cmake/FindSphinx.cmake14
1 files changed, 14 insertions, 0 deletions
diff --git a/cmake/FindSphinx.cmake b/cmake/FindSphinx.cmake
new file mode 100644
index 0000000..ed0d376
--- /dev/null
+++ b/cmake/FindSphinx.cmake
@@ -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)