diff options
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/" + ) |