Move stylesheets into Documentation/ folder

The Doxyfile is still in the root directory because this is more like
a configuration file, and also its presence will be a cue to some
users that Doxygen is possible to run on the project.
This commit is contained in:
Roland Kaufmann 2013-02-06 23:17:39 +01:00
parent 75c92fd91e
commit 4d00754e01
4 changed files with 8 additions and 6 deletions

View File

@ -396,6 +396,8 @@ add_custom_target (check
) )
### documentation ### ### documentation ###
set (docu_dir "Documentation")
configure_file ( configure_file (
${PROJECT_SOURCE_DIR}/Doxyfile.in ${PROJECT_SOURCE_DIR}/Doxyfile.in
${PROJECT_BINARY_DIR}/Doxyfile ${PROJECT_BINARY_DIR}/Doxyfile
@ -406,7 +408,7 @@ if (DOXYGEN_FOUND)
add_custom_target (doc add_custom_target (doc
COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/Doxyfile COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/Doxyfile
SOURCES ${PROJECT_BINARY_DIR}/Doxyfile SOURCES ${PROJECT_BINARY_DIR}/Doxyfile
WORKING_DIRECTORY ${PROJECT_BINARY_DIR} WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/${docu_dir}
COMMENT "Generating API documentation with Doxygen" COMMENT "Generating API documentation with Doxygen"
VERBATIM VERBATIM
) )
@ -414,8 +416,8 @@ if (DOXYGEN_FOUND)
foreach (format IN LISTS _formats) foreach (format IN LISTS _formats)
string (TOUPPER ${format} FORMAT) string (TOUPPER ${format} FORMAT)
install ( install (
DIRECTORY ${PROJECT_BINARY_DIR}/Documentation/${format} DIRECTORY ${PROJECT_BINARY_DIR}/${docu_dir}/${format}
DESTINATION share/doc/opm-core/ DESTINATION share/doc/${PROJECT_NAME}/
COMPONENT ${format} COMPONENT ${format}
OPTIONAL OPTIONAL
) )
@ -435,8 +437,8 @@ endif (DOXYGEN_FOUND)
# thus, we'll need to copy the stylesheet to this path relative to where # thus, we'll need to copy the stylesheet to this path relative to where
# Doxygen will be run (in the output tree) # Doxygen will be run (in the output tree)
if (NOT PROJECT_SOURCE_DIR STREQUAL PROJECT_BINARY_DIR) if (NOT PROJECT_SOURCE_DIR STREQUAL PROJECT_BINARY_DIR)
file (COPY ${PROJECT_SOURCE_DIR}/style.css file (COPY ${PROJECT_SOURCE_DIR}/${docu_dir}/style.css
DESTINATION ${PROJECT_BINARY_DIR} DESTINATION ${PROJECT_BINARY_DIR}/${docu_dir}
) )
endif (NOT PROJECT_SOURCE_DIR STREQUAL PROJECT_BINARY_DIR) endif (NOT PROJECT_SOURCE_DIR STREQUAL PROJECT_BINARY_DIR)

View File

@ -548,7 +548,7 @@ FILE_VERSION_FILTER =
# You can optionally specify a file name after the option, if omitted # You can optionally specify a file name after the option, if omitted
# DoxygenLayout.xml will be used as the name of the layout file. # DoxygenLayout.xml will be used as the name of the layout file.
LAYOUT_FILE = @PROJECT_SOURCE_DIR@/DoxygenLayout.xml LAYOUT_FILE = @PROJECT_SOURCE_DIR@/Documentation/DoxygenLayout.xml
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
# configuration options related to warning and progress messages # configuration options related to warning and progress messages