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/" + ) diff --git a/dbus-1-tqt.Doxyfile.in b/dbus-1-tqt.Doxyfile.in new file mode 100644 index 0000000..0ab8a8d --- /dev/null +++ b/dbus-1-tqt.Doxyfile.in @@ -0,0 +1,9 @@ +PROJECT_NAME = "DBus-1-TQt" +INPUT = ${CMAKE_SOURCE_DIR} +OUTPUT_DIRECTORY = ${APIDOX_DIRECTORY} +OUTPUT_LANGUAGE = English +GENERATE_LATEX = NO +FILE_PATTERNS = *.c *.h *.cpp *.hpp +PERL_PATH = /usr/bin/perl +QUIET = NO +EXTRACT_PRIVATE = YES