Permalink
Browse files

Fix generating of Doxygen documentation

Closes: #158
  • Loading branch information...
tehnick committed Oct 10, 2018
1 parent b74badb commit 6c59014b467e315e69eccf8ee5aabb0695f990fa
Showing with 18 additions and 14 deletions.
  1. +9 −7 doc/CMakeLists.txt
  2. +6 −4 doc/Doxyfile.in
  3. +3 −3 doc/index.doc
View
@@ -1,19 +1,21 @@
find_package(Doxygen REQUIRED)
set(DOXYGEN_INPUT
${CMAKE_CURRENT_SOURCE_DIR}/index.doc
${CMAKE_CURRENT_SOURCE_DIR}/using.doc
${CMAKE_CURRENT_SOURCE_DIR}/xep.doc
${PROJECT_SOURCE_DIR}/src
)
if(NOT DOXYGEN_FOUND)
message(FATAL_ERROR "Doxygen is needed to build the documentation.")
endif()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in
${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
@ONLY
)
add_custom_target(
doc ALL
COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generate API documentation with Doxygen"
VERBATIM
)
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html DESTINATION ${CMAKE_INSTALL_DOCDIR})
View
@@ -1,6 +1,9 @@
PROJECT_NAME = "@CMAKE_PROJECT_NAME@"
PROJECT_NUMBER = @VERSION_STRING@
INPUT = @DOXYGEN_INPUT@
PROJECT_NAME = "QXmpp"
PROJECT_NUMBER = Version:@VERSION_STRING@
INPUT = @PROJECT_SOURCE_DIR@/doc/index.doc \

This comment has been minimized.

Show comment
Hide comment
@jlaine

jlaine Oct 11, 2018

Contributor

Yes!

@jlaine

jlaine Oct 11, 2018

Contributor

Yes!

@PROJECT_SOURCE_DIR@/doc/using.doc \
@PROJECT_SOURCE_DIR@/doc/xep.doc \
@PROJECT_SOURCE_DIR@/src
ALPHABETICAL_INDEX = NO
EXCLUDE_PATTERNS = */moc_* */mod_* */*_p.h */QXmppCodec.cpp */QXmppSasl.cpp
@@ -10,4 +13,3 @@ GENERATE_LATEX = NO
HTML_TIMESTAMP = NO
QUIET = YES
RECURSIVE = YES
View
@@ -31,8 +31,8 @@ classes.
<B>Project Details:</B>
- Project Page: https://github.com/qxmpp-project/qxmpp/
- Report Issues: https://github.com/qxmpp-project/qxmpp/issues/
- New Releases: https://github.com/qxmpp-project/qxmpp/downloads/
- Project Page: https://github.com/qxmpp-project/qxmpp
- Report Issues: https://github.com/qxmpp-project/qxmpp/issues
- New Releases: https://github.com/qxmpp-project/qxmpp/releases
*/

0 comments on commit 6c59014

Please sign in to comment.