From adfec98ae29b0c39f9cf940ec37317e64bec3aaf Mon Sep 17 00:00:00 2001 From: maier Date: Wed, 27 Mar 2013 10:23:04 +0000 Subject: [PATCH] CMake: Don't be too greedy when installing examples git-svn-id: https://svn.dealii.org/trunk@29055 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/CMakeLists.txt | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/deal.II/examples/CMakeLists.txt b/deal.II/examples/CMakeLists.txt index e7cef1090d..2f000368c2 100644 --- a/deal.II/examples/CMakeLists.txt +++ b/deal.II/examples/CMakeLists.txt @@ -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() -- 2.39.5