From 28e27060274591fe13d5a1a226216fb01141e2f7 Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Fri, 18 Oct 2024 14:42:13 -0500 Subject: 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 --- CMake/FindSphinx.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 CMake/FindSphinx.cmake (limited to 'CMake/FindSphinx.cmake') 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) -- cgit v1.2.3