move function to cmake folder

This commit is contained in:
Jared Dillard
2025-10-28 12:40:13 -07:00
parent 6a07ce7b03
commit 98c45ba092
2 changed files with 11 additions and 11 deletions
-11
View File
@@ -2,17 +2,6 @@
include(SetupSphinx)
setup_sphinx_environment()
set(SPHINX_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/source)
set(SPHINX_BUILD ${CMAKE_BINARY_DIR})
# Function to add a Sphinx builder target
function(add_sphinx_builder builder_name)
add_custom_target(${builder_name}
COMMAND ${SPHINX_EXECUTABLE} -b ${builder_name} ${SPHINX_SOURCE} ${SPHINX_BUILD}/${builder_name}
VERBATIM
)
endfunction()
# Add builder targets
add_sphinx_builder(html)
add_sphinx_builder(markdown)