2023-03-23 17:27:46 +00:00
|
|
|
set(DOXYGEN_GENERATE_HTML YES)
|
|
|
|
set(DOXYGEN_GENERATE_MAN YES)
|
2023-04-10 21:01:19 +00:00
|
|
|
set(DOXYGEN_GENERATE_XML YES)
|
2023-03-23 17:27:46 +00:00
|
|
|
|
2023-04-09 17:19:23 +00:00
|
|
|
if (BUILD_DOXYGEN_AWESOME)
|
|
|
|
include(ExternalProject)
|
|
|
|
ExternalProject_Add(doxygen-awesome-css
|
|
|
|
GIT_REPOSITORY https://github.com/jothepro/doxygen-awesome-css.git
|
|
|
|
GIT_TAG "v2.2.0"
|
|
|
|
CONFIGURE_COMMAND ""
|
|
|
|
BUILD_COMMAND make
|
|
|
|
BUILD_IN_SOURCE TRUE
|
|
|
|
INSTALL_COMMAND make DESTDIR=${CMAKE_CURRENT_BINARY_DIR}/doxygen-awesome-css install
|
|
|
|
)
|
|
|
|
set (DOXYGEN_GENERATE_TREEVIEW YES)
|
|
|
|
set (DOXYGEN_DISABLE_INDEX NO)
|
|
|
|
set (DOXYGEN_FULL_SIDEBAR NO)
|
2023-04-10 21:01:19 +00:00
|
|
|
set (DOXYGEN_HTML_EXTRA_STYLESHEET
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/doxygen-awesome-css/doxygen-awesome.css
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/doxygen-awesome-css/doxygen-awesome-sidebar-only.css
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/doxygen-awesome-css/doxygen-awesome-sidebar-only-darkmode-toggle.css
|
|
|
|
custom.css
|
|
|
|
)
|
|
|
|
set (DOXYGEN_HTML_EXTRA_FILES
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/doxygen-awesome-css/doxygen-awesome-darkmode-toggle.js
|
|
|
|
)
|
2023-04-09 17:19:23 +00:00
|
|
|
set (DOXYGEN_FULL_SIDEBAR NO)
|
|
|
|
set (DOXYGEN_HTML_COLORSTYLE "LIGHT")
|
2023-04-10 21:01:19 +00:00
|
|
|
set (DOXYGEN_HTML_HEADER header.html)
|
2023-04-09 17:19:23 +00:00
|
|
|
endif()
|
|
|
|
|
2023-03-23 17:27:46 +00:00
|
|
|
doxygen_add_docs(
|
|
|
|
documentation
|
|
|
|
${PROJECT_SOURCE_DIR}/src
|
|
|
|
mainpage.dox
|
|
|
|
ALL
|
|
|
|
COMMENT "Generate man and html pages"
|
|
|
|
)
|
2023-04-10 21:01:19 +00:00
|
|
|
install(DIRECTORY
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/man
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/html
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/xml
|
|
|
|
TYPE DOC
|
|
|
|
)
|
2023-04-09 17:19:23 +00:00
|
|
|
|
|
|
|
if (BUILD_DOXYGEN_AWESOME)
|
|
|
|
add_dependencies(documentation doxygen-awesome-css)
|
|
|
|
endif()
|