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

[Merge][CMake] Merged revisions : 6650

Revision  r6650
.----------------------
Update  install_manifest.txt to include files installed during
subprocess cmak call.

.----------------------


[[Imported from SVN: r7182]]
parents 00271812 969de5aa
No related branches found
No related tags found
No related merge requests found
......@@ -5,13 +5,15 @@
#
add_custom_target(doc)
MACRO(create_doc_install filename targetdir)
get_filename_component(targetfile ${filename} NAME)
set(install_command ${CMAKE_COMMAND} -D FILE=${filename} -D DIR=${CMAKE_INSTALL_PREFIX}/${targetdir} -P ${CMAKE_SOURCE_DIR}/cmake/scripts/InstallFile.cmake)
set(install_command ${CMAKE_COMMAND} -D FILES=${filename} -D DIR=${CMAKE_INSTALL_PREFIX}/${targetdir} -P ${CMAKE_SOURCE_DIR}/cmake/scripts/InstallFile.cmake)
# create a custom target for the installation
add_custom_target(install_${targetfile} ${install_command}
COMMENT "Installing ${filename} to ${targetdir}"
DEPENDS ${filename})
# When installing call cmake install with the above install target
install(CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" --build \"${CMAKE_BINARY_DIR}\" --target install_${targetfile} )")
# When installing, call cmake install with the above install target and add the file to install_manifest.txt
install(CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" --build \"${CMAKE_BINARY_DIR}\" --target install_${targetfile} )
LIST(APPEND CMAKE_INSTALL_MANIFEST_FILES ${CMAKE_INSTALL_PREFIX}/${targetdir}/${targetfile})")
ENDMACRO(create_doc_install)
......@@ -51,6 +51,11 @@ MACRO (add_doxygen_target)
DEPENDS doxygen_${DUNE_MOD_NAME})
# 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} )")
install(CODE
"execute_process(COMMAND \"${CMAKE_COMMAND}\" --build \"${CMAKE_BINARY_DIR}\" --target doxygen_install_${DUNE_MOD_NAME} )
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})")
endif(DOXYGEN_FOUND)
ENDMACRO (add_doxygen_target)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment