Skip to content
Snippets Groups Projects
Commit 97bbb131 authored by Markus Blatt's avatar Markus Blatt
Browse files

Only install necessary doxygen files and install the directly into

share/doc/dune-common/doxygen.
InstallFile.cmake now supports a list of files.

[[Imported from SVN: r6633]]
parent 5ba835d1
Branches
Tags
No related merge requests found
......@@ -39,7 +39,10 @@ MACRO (add_doxygen_target)
add_dependencies(doc doxygen_${DUNE_MOD_NAME})
# Use a cmake call to install the doxygen documentation and create a target for it
set(install_doxygen_command ${CMAKE_COMMAND} -D FILE=${CMAKE_CURRENT_BINARY_DIR}/html -D DIR=${CMAKE_INSTALL_PREFIX}/share/doc/${DUNE_MOD_NAME}/doxygen -P ${CMAKE_SOURCE_DIR}/cmake/scripts/InstallFile.cmake)
file(GLOB doxygenfiles GLOB ${CMAKE_CURRENT_BINARY_DIR}/html/*.html ${CMAKE_CURRENT_BINARY_DIR}/html/*.png ${CMAKE_CURRENT_BINARY_DIR}/html/*.css ${CMAKE_CURRENT_BINARY_DIR}/html/*.gif)
set(doxygenfiles "${CMAKE_CURRENT_BINARY_DIR}/doxyerr.log;${doxygenfiles}")
set(install_doxygen_command ${CMAKE_COMMAND} -D FILES="${doxygenfiles}" -D DIR=${CMAKE_INSTALL_PREFIX}/share/doc/${DUNE_MOD_NAME}/doxygen -P ${CMAKE_SOURCE_DIR}/cmake/scripts/InstallFile.cmake)
add_custom_target(doxygen_install_${DUNE_MOD_NAME}
${install_doxygen_command}
COMMENT "Installing doxygen documentation"
......
file(INSTALL ${FILE}
DESTINATION ${DIR})
# Somehow variable list get destroyed when calling cmake (; is replaced with
# whitespace character. Undo this change
string(REGEX REPLACE "([a-zA-Z0-9]) ([/a-zA-Z0-9])" "\\1;\\2" files "${FILES}")
file(INSTALL ${files} DESTINATION ${DIR})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment