Skip to content

Commit

Permalink
build: add doxygen target (#5377)
Browse files Browse the repository at this point in the history
Co-authored-by: Nerixyz <nerixdev@outlook.de>
  • Loading branch information
pajlada and Nerixyz authored May 4, 2024
1 parent 85cb2a1 commit a88a2ac
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unversioned

- Dev: Add doxygen build target. (#5377)

## 2.5.1

- Bugfix: Fixed links without a protocol not being clickable. (#5345)
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
11 changes: 11 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()

0 comments on commit a88a2ac

Please sign in to comment.