Added generation of api documentation based on doxygen.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/10/head
Michele Calgaro 6 years ago
parent e5309110a3
commit f61c2d621a
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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/"
)

@ -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
Loading…
Cancel
Save