From 0f75eccf6bf870fe50aec2137312935f6a1672e7 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Wed, 13 May 2020 11:02:38 -0500 Subject: [PATCH] Documentation: Treat code gallery projects as examples Installing the code gallery projects as part of the html documentation is not ideal. Let us install the code gallery projects as a sub directory under the EXAMPLES_RELDIR instead: examples/code-gallery/* examples/step-* --- doc/doxygen/code-gallery/CMakeLists.txt | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/doc/doxygen/code-gallery/CMakeLists.txt b/doc/doxygen/code-gallery/CMakeLists.txt index 845e04546d..acccc68340 100644 --- a/doc/doxygen/code-gallery/CMakeLists.txt +++ b/doc/doxygen/code-gallery/CMakeLists.txt @@ -136,20 +136,19 @@ IF (EXISTS ${DEAL_II_CODE_GALLERY_DIRECTORY}/README.md) # Copy files of interest (non-metadata) to the build directory # so we can link to them, and schedule them for installation FILE(COPY ${DEAL_II_CODE_GALLERY_DIRECTORY}/${_step} - DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/ - PATTERN REGEX "doc/tooltip|doc/dependencies|doc/builds-on" EXCLUDE) + DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/ + PATTERN REGEX "doc/tooltip|doc/dependencies|doc/builds-on" EXCLUDE + ) INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${_step} - DESTINATION ${DEAL_II_DOCHTML_RELDIR}/doxygen/code-gallery - COMPONENT documentation - ) + DESTINATION ${DEAL_II_EXAMPLES_RELDIR}/code-gallery + COMPONENT examples + ) # Create a target for this program and add it to the top-level # target of this directory ADD_CUSTOM_TARGET(code-gallery_${_step} - DEPENDS - ${CMAKE_CURRENT_BINARY_DIR}/${_step}.h - COMMENT - "Building doxygen input file for code gallery program <${_step}>" + DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_step}.h + COMMENT "Building doxygen input file for code gallery program <${_step}>" ) ADD_DEPENDENCIES(code-gallery code-gallery_${_step}) -- 2.39.5