From 6df20477faa61b7db53f54546d8457eea2383d30 Mon Sep 17 00:00:00 2001 From: maier Date: Wed, 19 Sep 2012 16:31:30 +0000 Subject: [PATCH] Add expand_instantiations and a symlink for the examples to compat_files git-svn-id: https://svn.dealii.org/branches/branch_cmake@26515 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/CMakeLists.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/deal.II/examples/CMakeLists.txt b/deal.II/examples/CMakeLists.txt index 6974cbcad9..a5a0a8723c 100644 --- a/deal.II/examples/CMakeLists.txt +++ b/deal.II/examples/CMakeLists.txt @@ -23,6 +23,12 @@ IF(DEAL_II_INSTALL_EXAMPLES) step-42 step-43 step-44 step-45 step-46 step-47 step-48 ) + + # + # We install the examples to usr/share/doc/deal.II + # a path expected by the majority of distributions, but a bit + # inconvenient... + # FOREACH(step ${deal_ii_examples}) INSTALL(DIRECTORY ${step} DESTINATION usr/share/doc/deal.II/examples @@ -31,4 +37,16 @@ IF(DEAL_II_INSTALL_EXAMPLES) ) ENDFOREACH() + + # + # ... therefore, create a symlink if DEAL_II_COMPAT_FILES is set: + # + IF(DEAL_II_COMPAT_FILES) + INSTALL( + CODE "COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_INSTALL_PREFIX}/usr/share/doc/deal.II/examples ${CMAKE_INSTALL_PREFIX}/examples" + COMPONENT compat_files + ) + + ENDIF() + ENDIF() -- 2.39.5