add initial support fot doxygen-generating

how to use it
1. cmake .
2. make doxygen
3. open docs/index.html
This commit is contained in:
Chilledheart 2014-12-01 03:28:30 +08:00
parent 5c06ecd452
commit 7429f5fc0a
3 changed files with 2380 additions and 0 deletions

4
.gitignore vendored
View file

@ -77,3 +77,7 @@ seafile-applet.app
test_*
!test_*.cpp
!test_*.h
## doxygen related
docs
Doxyfile

View file

@ -11,6 +11,8 @@ ENDIF()
OPTION(BUILD_TESTING "Build Test" OFF)
OPTION(BUILD_DOCS "Build Documents" OFF)
MESSAGE("Build type: ${CMAKE_BUILD_TYPE}")
IF (WIN32)
@ -339,6 +341,29 @@ QT4_ADD_TRANSLATION(qm_files ${LANGUAGE_TS_FILES})
###### end: translations
####################
###################
##### begin: doxygen
##################
FIND_PACKAGE(Doxygen)
IF (DOXYGEN_FOUND)
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in
${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
ADD_CUSTOM_TARGET(doxygen
COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generating doxygen documentation." VERBATIM)
IF(BUILD_DOCS)
ADD_CUSTOM_TARGET(doxygen ALL)
ENDIF()
ENDIF()
###################
##### end: doxygen
##################
####################
###### begin: lib
####################

2351
Doxyfile.in Normal file

File diff suppressed because it is too large Load diff