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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 14 additions and 0 deletions

View file

@ -2,6 +2,8 @@
## Unversioned
- Dev: Add doxygen build target. (#5377)
## 2.5.1
- Bugfix: Fixed links without a protocol not being clickable. (#5345)

View file

@ -197,6 +197,7 @@ find_package(PajladaSerialize REQUIRED)
find_package(PajladaSignals REQUIRED)
find_package(LRUCache REQUIRED)
find_package(MagicEnum REQUIRED)
find_package(Doxygen)
if (USE_SYSTEM_PAJLADA_SETTINGS)
find_package(PajladaSettings REQUIRED)

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 ()