mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
build: add doxygen target (#5377)
Co-authored-by: Nerixyz <nerixdev@outlook.de>
This commit is contained in:
parent
85cb2a1f3c
commit
a88a2ac65c
|
@ -2,6 +2,8 @@
|
|||
|
||||
## Unversioned
|
||||
|
||||
- Dev: Add doxygen build target. (#5377)
|
||||
|
||||
## 2.5.1
|
||||
|
||||
- Bugfix: Fixed links without a protocol not being clickable. (#5345)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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 ()
|
||||
|
|
Loading…
Reference in a new issue