build: add doxygen target (#5377)

Co-authored-by: Nerixyz <nerixdev@outlook.de>
This commit is contained in:
pajlada
2024-05-04 12:39:14 +02:00
committed by GitHub
parent 85cb2a1f3c
commit a88a2ac65c
3 changed files with 14 additions and 0 deletions
+11
View File
@@ -1141,3 +1141,14 @@ if(NOT CHATTERINO_UPDATER)
message(STATUS "Disabling the updater.")
target_compile_definitions(${LIBRARY_PROJECT} PUBLIC CHATTERINO_DISABLE_UPDATER)
endif()
if (DOXYGEN_FOUND)
message(STATUS "Doxygen found, adding doxygen target")
# output will be in docs/html
set(DOXYGEN_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/docs")
doxygen_add_docs(
doxygen
${CMAKE_CURRENT_LIST_DIR}
)
endif ()