aboutsummaryrefslogtreecommitdiff
path: root/source/CMakeLists.txt
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2023-10-12 15:10:23 +0200
committerFelix Morgner <felix.morgner@ost.ch>2023-10-12 15:10:23 +0200
commit0db25b0e76151c43a235ae627cf318b69745c2fb (patch)
treeed402c867bd9e3ba4d6b078fbd5f34850a169a59 /source/CMakeLists.txt
parent557643b786e1de7a8a391f998130913cb30a242f (diff)
downloadteachos-0db25b0e76151c43a235ae627cf318b69745c2fb.tar.xz
teachos-0db25b0e76151c43a235ae627cf318b69745c2fb.zip
docs: enable sphinx HTML build
Diffstat (limited to 'source/CMakeLists.txt')
-rw-r--r--source/CMakeLists.txt24
1 files changed, 21 insertions, 3 deletions
diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt
index b2dc9f1..215dd39 100644
--- a/source/CMakeLists.txt
+++ b/source/CMakeLists.txt
@@ -24,13 +24,31 @@ find_package("Doxygen")
set(DOXYGEN_GENERATE_HTML NO)
set(DOXYGEN_GENERATE_XML YES)
set(DOXYGEN_EXCLUDE_PATTERNS "*.cpp")
-set(DOXYGEN_OUTPUT_DIRECTORY "doxygen-xml")
+set(DOXYGEN_OUTPUT_DIRECTORY "doxygen")
set(DOXYGEN_QUIET YES)
+file(GLOB_RECURSE DOXYGEN_SOURCES CONFIGURE_DEPENDS "*.hpp")
+
doxygen_add_docs("docs"
- ${PROJECT_SOURCE_DIR}
+ ${DOXYGEN_SOURCES}
ALL
- COMMENT "Generating source documentation"
+ USE_STAMP_FILE
+ COMMENT "Generating developer documentation sources"
+)
+
+add_custom_command(TARGET "docs"
+ POST_BUILD
+ COMMAND "${SPHINX_BUILD_EXE}"
+ ARGS
+ "../docs"
+ "docs"
+ "-q"
+ COMMENT "Generating developer documentation html"
+)
+
+set_target_properties("docs" PROPERTIES
+ ADDITIONAL_CLEAN_FILES
+ "${PROJECT_BINARY_DIR}/doxygen;${PROJECT_BINARY_DIR}/docs"
)
#[============================================================================[