diff options
author | Michele Calgaro <[email protected]> | 2019-04-18 21:15:47 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2019-04-18 21:15:47 +0900 |
commit | f61c2d621a58cc74102270c6296966656d5d8e10 (patch) | |
tree | 14611713ce93c284866bda37aef7f3ed8b9c6334 /CMakeLists.txt | |
parent | e5309110a308fcc975d59fca805f109406496a5b (diff) | |
download | dbus-1-tqt-f61c2d621a58cc74102270c6296966656d5d8e10.tar.gz dbus-1-tqt-f61c2d621a58cc74102270c6296966656d5d8e10.zip |
Added generation of api documentation based on doxygen.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 275765a..5097178 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -114,3 +114,20 @@ tde_add_executable( dbusxml2qt3 LINK ${TQT_LIBRARIES} DESTINATION ${BIN_INSTALL_DIR} ) + + +##### add apidox targets ############ +set( APIDOX_HTML_DIRECTORY "usr/share/doc/libdbus-1-tqt/HTML" ) +set( APIDOX_DIRECTORY "${CMAKE_BINARY_DIR}/${APIDOX_HTML_DIRECTORY}/en" ) +configure_file( ${CMAKE_SOURCE_DIR}/dbus-1-tqt.Doxyfile.in ${CMAKE_BINARY_DIR}/dbus-1-tqt.Doxyfile ) + +add_custom_target( apidox + COMMAND test -d ${APIDOX_DIRECTORY} || mkdir -p ${APIDOX_DIRECTORY} + COMMAND doxygen ${CMAKE_BINARY_DIR}/dbus-1-tqt.Doxyfile + WORKING_DIRECTORY ${CMAKE_BINARY_DIR} + ) + +add_custom_target( install-apidox + COMMAND "./install_apidox" "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" "${APIDOX_HTML_DIRECTORY}" + WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/cmake/" + ) |