update-doxyfile

This commit is contained in:
akallabeth 2024-09-09 11:33:10 +02:00
parent 86bfade4dc
commit 801c825e2b
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5
3 changed files with 2007 additions and 807 deletions

View File

@ -84,6 +84,7 @@ include(CMakePackageConfigHelpers)
include(InstallFreeRDPMan)
include(GetGitRevisionDescription)
include(SetFreeRDPCMakeInstallDir)
include(Doxygen)
# Soname versioning
set(BUILD_NUMBER 0)

29
cmake/Doxygen.cmake Normal file
View File

@ -0,0 +1,29 @@
option(WITH_DOCUMENTATION "Add target to build doxygen documentation" OFF)
if (WITH_DOCUMENTATION)
if (CMAKE_VERSION VERSION_LESS "3.27")
message(WARNING "Building with CMake ${CMAKE_VERSION} but >= 3.27 required for doxygen target")
else()
include (FindDoxygen)
find_package(Doxygen
REQUIRED dot
OPTIONAL_COMPONENTS mscgen dia)
set(DOXYGEN_PROJECT_NAME ${PROJECT_NAME})
set(DOXYGEN_PROJECT_NUMBER ${PROJECT_VERSION})
set(DOXYGEN_EXCLUDE_PATTERNS "*/uwac/protocols/*")
set(DOXYGEN_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/docs")
doxygen_add_docs(
docs
"${CMAKE_SOURCE_DIR}"
ALL
COMMENT "Generate doxygen docs"
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/docs"
CONFIG_FILE "${CMAKE_SOURCE_DIR}/docs/Doxyfile"
)
install(DIRECTORY "${CMAKE_SOURCE_DIR}/docs/api"
DESTINATION ${CMAKE_INSTALL_DOCDIR}
)
endif()
endif()

File diff suppressed because it is too large Load Diff