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

Use file(INSTALL) to install doxygen documentation.

The previous approach failed if there were to many files for the shell.

[[Imported from SVN: r6964]]
parent 2d2456f0
No related branches found
No related tags found
No related merge requests found
......@@ -74,10 +74,11 @@ MACRO (add_doxygen_target)
# When installing call cmake install with the above install target
install(CODE
"execute_process(COMMAND \"${CMAKE_COMMAND}\" --build \"${CMAKE_BINARY_DIR}\" --target doxygen_install_${DUNE_MOD_NAME} )
"include(GNUInstallDirs)
foreach(_file ${doxygenfiles})
get_filename_component(_basename \${_file} NAME)
LIST(APPEND CMAKE_INSTALL_MANIFEST_FILES \${CMAKE_INSTALL_PREFIX}/share/doc/${DUNE_MOD_NAME}/doxygen/\${_basename})
endforeach(_file in \${doxygenfiles})")
LIST(APPEND CMAKE_INSTALL_MANIFEST_FILES \${CMAKE_INSTALL_DOCDIR}/doxygen/\${_basename})
endforeach(_file in \${doxygenfiles})
file(INSTALL ${doxygenfiles} DESTINATION \${CMAKE_INSTALL_DOCDIR}/doxygen)")
endif(DOXYGEN_FOUND)
ENDMACRO (add_doxygen_target)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment