]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add expand_instantiations and a symlink for the examples to compat_files
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 19 Sep 2012 16:31:30 +0000 (16:31 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 19 Sep 2012 16:31:30 +0000 (16:31 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@26515 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/CMakeLists.txt

index 6974cbcad969af917fa894fd7b59e5b55a221c07..a5a0a8723c0403af33c0011d76fdf2b9aa0d13af 100644 (file)
@@ -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()

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.