zeek/auxil/broker/doc/CMakeLists.txt
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

21 lines
538 B
CMake

if (NOT TARGET doc)
add_custom_target(doc)
endif ()
set(html_output_dir ${CMAKE_CURRENT_BINARY_DIR}/html)
add_custom_target(broker-doc-html
COMMAND sphinx-build
-b html
-c ${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${html_output_dir}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "[Sphinx] Generate Broker HTML documentation in ${html_output_dir}")
add_dependencies(doc broker-doc-html)
if ( NOT BROKER_DISABLE_DOC_EXAMPLES )
add_subdirectory(_examples)
endif ()