mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-05 20:27:59 +02:00
Cleanup of cmake doc-related targets
There is now a top-level target "doc" that is always built. Depending on the detected generators it depends on optional targets like apidoc' and 'devhelp2'.
This commit is contained in:
parent
bac2fd3aa4
commit
1acdf59619
1 changed files with 10 additions and 1 deletions
|
|
@ -2,6 +2,9 @@ SET(DOC_DIR ${CMAKE_SOURCE_DIR}/../doc)
|
|||
|
||||
find_package(Doxygen)
|
||||
|
||||
# build doc always
|
||||
add_custom_target(doc ALL)
|
||||
|
||||
if(DOXYGEN_EXECUTABLE)
|
||||
OPTION(DBUS_ENABLE_DOXYGEN_DOCS "build DOXYGEN documentation (requires Doxygen)" ON)
|
||||
endif(DOXYGEN_EXECUTABLE)
|
||||
|
|
@ -14,9 +17,15 @@ if (DBUS_ENABLE_DOXYGEN_DOCS)
|
|||
COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_BINARY_DIR}/Doxyfile
|
||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
||||
)
|
||||
add_custom_target(doc
|
||||
add_custom_target(apidoc
|
||||
COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_BINARY_DIR}/Doxyfile
|
||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
||||
)
|
||||
add_dependencies(doc apidoc)
|
||||
add_custom_target(devhelp2
|
||||
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/api/html/index.html ${CMAKE_CURRENT_BINARY_DIR}/dbus.devhelp2
|
||||
)
|
||||
add_dependencies(doc devhelp2)
|
||||
endif (DBUS_ENABLE_DOXYGEN_DOCS)
|
||||
|
||||
find_program(XSLTPROC_EXECUTABLE xsltproc)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue