summaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2024-10-18 14:42:13 -0500
committerDanny Holman <dholman@gymli.org>2024-10-18 14:42:13 -0500
commit28e27060274591fe13d5a1a226216fb01141e2f7 (patch)
tree72110e56a4e12a01129fe045227b9e0b5bfa6a28 /CMake
parent74df10cc9f7ce264ac017b4efac918818f460c25 (diff)
doc: hook documentation into build system
Add a target to the build system that will generate the included documentation. This target should be called "docs" and should only be called explictity, not during the default build target. Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'CMake')
-rw-r--r--CMake/FindSphinx.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/CMake/FindSphinx.cmake b/CMake/FindSphinx.cmake
new file mode 100644
index 0000000..237d026
--- /dev/null
+++ b/CMake/FindSphinx.cmake
@@ -0,0 +1,8 @@
+find_program(SPHINX_EXECUTABLE
+ NAMES sphinx-build
+ DOC "Path to sphinx-build executable")
+include(FindPackageHandleStandardArgs)
+
+find_package_handle_standard_args(Sphinx
+ "Failed to find sphinx-build executable"
+ SPHINX_EXECUTABLE)