]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
CMake: Don't be too greedy when installing examples
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 27 Mar 2013 10:23:04 +0000 (10:23 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 27 Mar 2013 10:23:04 +0000 (10:23 +0000)
git-svn-id: https://svn.dealii.org/trunk@29055 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/CMakeLists.txt

index e7cef1090dd400939fd1a7d3f78daed1ea954bd0..2f000368c2e22c0c7882462c20cceb1d2b204158 100644 (file)
@@ -16,10 +16,28 @@ IF(DEAL_II_COMPONENT_EXAMPLES)
   INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/
     DESTINATION ${DEAL_II_EXAMPLES_RELDIR}
     COMPONENT examples
-    PATTERN "${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt" EXCLUDE
-    PATTERN "doc" EXCLUDE
-    PATTERN "doxygen" EXCLUDE
-    PATTERN ".svn" EXCLUDE
-    PATTERN "TODO" EXCLUDE
+    FILES_MATCHING
+    #
+    # Exclude folder structures: doc, doxygen, CMakeFiles,...
+    #
+    PATTERN "CMakeFiles*" EXCLUDE
+    PATTERN "doc*" EXCLUDE
+    PATTERN "doxygen*" EXCLUDE
+    PATTERN ".svn*" EXCLUDE
+    #
+    # Glob Includes:
+    #
+    PATTERN "*.cc"
+    PATTERN "*.prm"
+    PATTERN "*.inp"
+    PATTERN "step*/CMakeLists.txt"
+    #
+    # Special files:
+    #
+    PATTERN "output.reference.dat" # step-39
+    PATTERN "postprocess.pl"       # step-39
+    PATTERN "obstacle_file.pbm"    # step-42
+    PATTERN "untitled.geo"         # step-49
+    PATTERN "untitled.msh"         # step-49
     )
 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.