mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2025-12-24 19:20:08 +01:00
15 lines
445 B
Text
15 lines
445 B
Text
|
|
find_package(Doxygen)
|
||
|
|
|
||
|
|
if(DOXYGEN_EXECUTABLE)
|
||
|
|
OPTION(DBUS_ENABLE_DOXYGEN_DOCS "build DOXYGEN documentation (requires Doxygen)" ON)
|
||
|
|
endif(DOXYGEN_EXECUTABLE)
|
||
|
|
|
||
|
|
|
||
|
|
set (top_srcdir ${CMAKE_SOURCE_DIR}/..)
|
||
|
|
configure_file(${CMAKE_SOURCE_DIR}/Doxyfile.cmake ${CMAKE_BINARY_DIR}/Doxyfile )
|
||
|
|
if (DBUS_ENABLE_DOXYGEN_DOCS)
|
||
|
|
add_custom_target(doc
|
||
|
|
COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_BINARY_DIR}/Doxyfile
|
||
|
|
)
|
||
|
|
endif (DBUS_ENABLE_DOXYGEN_DOCS)
|