Make doxygen documentation files with relative paths, add generated file tolua.cpp to doxygen too
This commit is contained in:
parent
08add126f4
commit
1eb620711e
2 changed files with 9 additions and 7 deletions
|
@ -778,8 +778,9 @@ source_group(gameheaders FILES ${gameheaders_HDRS})
|
|||
if(ENABLE_DOC AND DOXYGEN_FOUND)
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/doc/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
|
||||
add_custom_command(OUTPUT doxygen/index.html
|
||||
COMMAND ${DOXYGEN_EXECUTABLE}
|
||||
COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
|
||||
DEPENDS doc/Doxyfile* ${stratagus_SRCS} ${stratagus_HDRS} ${metaserver_SRCS} ${metaserver_HDRS}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
COMMENT "Generating Stratagus souce code documentation with Doxygen" VERBATIM
|
||||
)
|
||||
add_custom_target(doc ALL DEPENDS doxygen/index.html)
|
||||
|
|
|
@ -568,10 +568,11 @@ WARN_LOGFILE =
|
|||
# directories like "/usr/src/myproject". Separate the files or directories
|
||||
# with spaces.
|
||||
|
||||
INPUT = ${CMAKE_CURRENT_SOURCE_DIR}/metaserver \
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src \
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/gameheaders \
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/tools
|
||||
INPUT = metaserver \
|
||||
src \
|
||||
${CMAKE_CURRENT_BINARY_DIR}/tolua.cpp \
|
||||
gameheaders \
|
||||
tools
|
||||
|
||||
# This tag can be used to specify the character encoding of the source files
|
||||
# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
|
||||
|
@ -782,13 +783,13 @@ HTML_FILE_EXTENSION = .html
|
|||
# each generated HTML page. If it is left blank doxygen will generate a
|
||||
# standard header.
|
||||
|
||||
HTML_HEADER = ${CMAKE_CURRENT_SOURCE_DIR}/doc/Doxyfile-header.html
|
||||
HTML_HEADER = doc/Doxyfile-header.html
|
||||
|
||||
# The HTML_FOOTER tag can be used to specify a personal HTML footer for
|
||||
# each generated HTML page. If it is left blank doxygen will generate a
|
||||
# standard footer.
|
||||
|
||||
HTML_FOOTER = ${CMAKE_CURRENT_SOURCE_DIR}/doc/Doxyfile-footer.html
|
||||
HTML_FOOTER = doc/Doxyfile-footer.html
|
||||
|
||||
# The HTML_STYLESHEET tag can be used to specify a user-defined cascading
|
||||
# style sheet that is used by each HTML page. It can be used to
|
||||
|
|
Loading…
Reference in a new issue