]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
CMake: Replace explicit file list with globbing expression
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 6 Sep 2013 03:08:08 +0000 (03:08 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 6 Sep 2013 03:08:08 +0000 (03:08 +0000)
git-svn-id: https://svn.dealii.org/trunk@30622 0785d39b-7218-0410-832d-ea1e28bc413d

13 files changed:
deal.II/source/algorithms/CMakeLists.txt
deal.II/source/base/CMakeLists.txt
deal.II/source/distributed/CMakeLists.txt
deal.II/source/dofs/CMakeLists.txt
deal.II/source/fe/CMakeLists.txt
deal.II/source/grid/CMakeLists.txt
deal.II/source/hp/CMakeLists.txt
deal.II/source/integrators/CMakeLists.txt
deal.II/source/lac/CMakeLists.txt
deal.II/source/matrix_free/CMakeLists.txt
deal.II/source/meshworker/CMakeLists.txt
deal.II/source/multigrid/CMakeLists.txt
deal.II/source/numerics/CMakeLists.txt

index c77a4e71cf0b2c85896e03720cd4a4834b33776c..a90cb948a883d97582e669aea627a48635ca46c4 100644 (file)
@@ -19,14 +19,11 @@ INCLUDE_DIRECTORIES(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
 FILE(GLOB _header
   ${CMAKE_SOURCE_DIR}/include/deal.II/algorithms/*.h
   )
-
-SET(_src
-  operator.cc
-  timestep_control.cc
+FILE(GLOB _src
+  ${CMAKE_CURRENT_SOURCE_DIR}/*.cc
   )
-
-SET(_inst
-  operator.inst.in
+FILE(GLOB _inst
+  ${CMAKE_CURRENT_SOURCE_DIR}/*.inst.in
   )
 
 DEAL_II_ADD_LIBRARY(obj_algorithms OBJECT ${_src} ${_header} ${_inst})
index d60e54902c1023203b507d5a5854ccb12e22c495..4df19e2b20bf95669bb1c95bfc6c887521a6e417 100644 (file)
@@ -19,59 +19,10 @@ INCLUDE_DIRECTORIES(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
 FILE(GLOB _header
   ${CMAKE_SOURCE_DIR}/include/deal.II/base/*.h
   )
-
-SET(_src
-  auto_derivative_function.cc
-  conditional_ostream.cc
-  config.cc
-  convergence_table.cc
-  data_out_base.cc
-  # do NOT include dummy.cc
-  event.cc
-  exceptions.cc
-  flow_function.cc
-  function.cc
-  function_derivative.cc
-  function_lib.cc
-  function_lib_cutoff.cc
-  function_parser.cc
-  function_time.cc
-  geometry_info.cc
-  index_set.cc
-  job_identifier.cc
-  logstream.cc
-  memory_consumption.cc
-  mpi.cc
-  multithread_info.cc
-  parallel.cc
-  parameter_handler.cc
-  parsed_function.cc
-  partitioner.cc
-  path_search.cc
-  polynomial.cc
-  polynomials_abf.cc
-  polynomials_adini.cc
-  polynomials_bdm.cc
-  polynomials_nedelec.cc
-  polynomials_piecewise.cc
-  polynomial_space.cc
-  polynomials_p.cc
-  polynomials_raviart_thomas.cc
-  quadrature.cc
-  quadrature_lib.cc
-  quadrature_selector.cc
-  subscriptor.cc
-  symmetric_tensor.cc
-  table_handler.cc
-  tensor_function.cc
-  tensor_product_polynomials.cc
-  tensor_product_polynomials_const.cc
-  thread_management.cc
-  timer.cc
-  utilities.cc
+FILE(GLOB _src
+  ${CMAKE_CURRENT_SOURCE_DIR}/*.cc
   )
 
 DEAL_II_ADD_LIBRARY(obj_base OBJECT ${_src} ${_header}
   ${CMAKE_BINARY_DIR}/include/deal.II/base/config.h
   )
-
index 9648b6ae597ea84693ce7360b146529e903bfb45..ae4082661916b19d1e1334fc91a810816fe776e1 100644 (file)
@@ -19,19 +19,12 @@ INCLUDE_DIRECTORIES(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
 FILE(GLOB _header
   ${CMAKE_SOURCE_DIR}/include/deal.II/distributed/*.h
   )
-
-SET(_src
-  grid_refinement.cc
-  solution_transfer.cc
-  tria.cc
+FILE(GLOB _src
+  ${CMAKE_CURRENT_SOURCE_DIR}/*.cc
   )
-
-SET(_inst
-  grid_refinement.inst.in
-  solution_transfer.inst.in
-  tria.inst.in
+FILE(GLOB _inst
+  ${CMAKE_CURRENT_SOURCE_DIR}/*.inst.in
   )
 
 DEAL_II_ADD_LIBRARY(obj_distributed OBJECT ${_src} ${_header} ${_inst})
 EXPAND_INSTANTIATIONS(obj_distributed "${_inst}")
-
index e3bf9d563148cd69c2e6ddb8dbe15af5ff90810e..b9dd6e73fac2f5eb6b4b7f10870c5e80b87c7cf1 100644 (file)
@@ -19,37 +19,12 @@ INCLUDE_DIRECTORIES(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
 FILE(GLOB _header
   ${CMAKE_SOURCE_DIR}/include/deal.II/dofs/*.h
   )
-
-SET(_src
-  block_info.cc
-  dof_accessor.cc
-  dof_accessor_get.cc
-  dof_accessor_set.cc
-  dof_faces.cc
-  dof_handler.cc
-  dof_handler_policy.cc
-  dof_objects.cc
-  dof_renumbering.cc
-  dof_tools.cc
-  dof_tools_constraints.cc
-  dof_tools_sparsity.cc
-  number_cache.cc
+FILE(GLOB _src
+  ${CMAKE_CURRENT_SOURCE_DIR}/*.cc
   )
-
-SET(_inst
-  block_info.inst.in
-  dof_accessor.inst.in
-  dof_accessor_get.inst.in
-  dof_accessor_set.inst.in
-  dof_handler.inst.in
-  dof_handler_policy.inst.in
-  dof_objects.inst.in
-  dof_renumbering.inst.in
-  dof_tools.inst.in
-  dof_tools_constraints.inst.in
-  dof_tools_sparsity.inst.in
+FILE(GLOB _inst
+  ${CMAKE_CURRENT_SOURCE_DIR}/*.inst.in
   )
 
 DEAL_II_ADD_LIBRARY(obj_dofs OBJECT ${_src} ${_header} ${_inst})
 EXPAND_INSTANTIATIONS(obj_dofs "${_inst}")
-
index 5fa933789b6e30239b10de0aacc9ad6d3cd901ee..6bdc6a20f7172335912c6ad50c38e734fd159c3b 100644 (file)
@@ -19,83 +19,12 @@ INCLUDE_DIRECTORIES(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
 FILE(GLOB _header
   ${CMAKE_SOURCE_DIR}/include/deal.II/fe/*.h
   )
-
-SET(_src
-  block_mask.cc
-  component_mask.cc
-  fe_abf.cc
-  fe_bdm.cc
-  fe.cc
-  fe_data.cc
-  fe_dgp.cc
-  fe_dgp_monomial.cc
-  fe_dgp_nonparametric.cc
-  fe_dgq.cc
-  fe_dg_vector.cc
-  fe_face.cc
-  fe_nedelec.cc
-  fe_nothing.cc
-  fe_poly.cc
-  fe_poly_tensor.cc
-  fe_q.cc
-  fe_q_base.cc
-  fe_q_dg0.cc
-  fe_q_hierarchical.cc
-  fe_q_iso_q1.cc
-  fe_raviart_thomas.cc
-  fe_raviart_thomas_nodal.cc
-  fe_system.cc
-  fe_tools.cc
-  fe_tools_interpolate.cc
-  fe_values.cc
-  fe_values_inst2.cc
-  mapping_c1.cc
-  mapping_cartesian.cc
-  mapping.cc
-  mapping_q1.cc
-  mapping_q1_eulerian.cc
-  mapping_q.cc
-  mapping_q_eulerian.cc
+FILE(GLOB _src
+  ${CMAKE_CURRENT_SOURCE_DIR}/*.cc
   )
-
-SET(_inst
-  fe_abf.inst.in
-  fe_bdm.inst.in
-  fe_dgp.inst.in
-  fe_dgp_monomial.inst.in
-  fe_dgp_nonparametric.inst.in
-  fe_dgq.inst.in
-  fe_dg_vector.inst.in
-  fe_face.inst.in
-  fe.inst.in
-  fe_nedelec.inst.in
-  fe_nothing.inst.in
-  fe_poly.inst.in
-  fe_poly_tensor.inst.in
-  fe_q_base.inst.in  
-  fe_q_dg0.inst.in
-  fe_q_hierarchical.inst.in
-  fe_q.inst.in
-  fe_q_iso_q1.inst.in
-  fe_raviart_thomas.inst.in
-  fe_raviart_thomas_nodal.inst.in
-  fe_system.inst.in
-  fe_tools.inst.in
-  fe_tools_interpolate.inst.in
-  fe_values.decl.1.inst.in
-  fe_values.decl.2.inst.in
-  fe_values.impl.1.inst.in
-  fe_values.impl.2.inst.in
-  fe_values.inst.in
-  mapping_c1.inst.in
-  mapping_cartesian.inst.in
-  mapping.inst.in
-  mapping_q1_eulerian.inst.in
-  mapping_q1.inst.in
-  mapping_q_eulerian.inst.in
-  mapping_q.inst.in
+FILE(GLOB _inst
+  ${CMAKE_CURRENT_SOURCE_DIR}/*.inst.in
   )
 
 DEAL_II_ADD_LIBRARY(obj_fe OBJECT ${_src} ${_header} ${_inst})
 EXPAND_INSTANTIATIONS(obj_fe "${_inst}")
-
index 5e13fa938c63e5535b2620728c1b23bbc27ff991..d22df834b5fb3a2309b7b3309ef7c9c853a9a5c2 100644 (file)
@@ -19,39 +19,12 @@ INCLUDE_DIRECTORIES(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
 FILE(GLOB _header
   ${CMAKE_SOURCE_DIR}/include/deal.II/grid/*.h
   )
-
-SET(_src
-  grid_generator.cc
-  grid_in.cc
-  grid_out.cc
-  grid_refinement.cc
-  grid_reordering.cc
-  grid_tools.cc
-  intergrid_map.cc
-  persistent_tria.cc
-  tria_accessor.cc
-  tria_boundary.cc
-  tria_boundary_lib.cc
-  tria.cc
-  tria_faces.cc
-  tria_levels.cc
-  tria_objects.cc
+FILE(GLOB _src
+  ${CMAKE_CURRENT_SOURCE_DIR}/*.cc
   )
-
-SET(_inst
-  grid_generator.inst.in
-  grid_in.inst.in
-  grid_out.inst.in
-  grid_refinement.inst.in
-  grid_tools.inst.in
-  intergrid_map.inst.in
-  tria_accessor.inst.in
-  tria_boundary.inst.in
-  tria_boundary_lib.inst.in
-  tria.inst.in
-  tria_objects.inst.in
+FILE(GLOB _inst
+  ${CMAKE_CURRENT_SOURCE_DIR}/*.inst.in
   )
 
 DEAL_II_ADD_LIBRARY(obj_grid OBJECT ${_src} ${_header} ${_inst})
 EXPAND_INSTANTIATIONS(obj_grid "${_inst}")
-
index 66f766286337bb9c9f0c422076cc5197e3fcd6bf..6cb3662cac1c4b0688ae108317f35908ff464bf0 100644 (file)
@@ -19,24 +19,12 @@ INCLUDE_DIRECTORIES(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
 FILE(GLOB _header
   ${CMAKE_SOURCE_DIR}/include/deal.II/hp/*.h
   )
-
-SET(_src
-  dof_faces.cc
-  dof_handler.cc
-  dof_level.cc
-  dof_objects.cc
-  fe_collection.cc
-  fe_values.cc
-  mapping_collection.cc
+FILE(GLOB _src
+  ${CMAKE_CURRENT_SOURCE_DIR}/*.cc
   )
-
-SET(_inst
-  dof_handler.inst.in
-  fe_collection.inst.in
-  fe_values.inst.in
-  mapping_collection.inst.in
+FILE(GLOB _inst
+  ${CMAKE_CURRENT_SOURCE_DIR}/*.inst.in
   )
 
 DEAL_II_ADD_LIBRARY(obj_hp OBJECT ${_src} ${_header} ${_inst})
 EXPAND_INSTANTIATIONS(obj_hp "${_inst}")
-
index 45ba6b7b61d933524490eea49dde3fd146d9011c..a428c38532981ca5948dbfc034c6ffb8a9d3e3e7 100644 (file)
@@ -19,8 +19,12 @@ INCLUDE_DIRECTORIES(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
 FILE(GLOB _header
   ${CMAKE_SOURCE_DIR}/include/deal.II/integrators/*.h
   )
-
-SET(_src
+FILE(GLOB _src
+  ${CMAKE_CURRENT_SOURCE_DIR}/*.cc
   )
+# FILE(GLOB _inst
+#   ${CMAKE_CURRENT_SOURCE_DIR}/*.inst.in
+#    )
 
 DEAL_II_ADD_LIBRARY(obj_integrators OBJECT ${_src} ${_header})
+#EXPAND_INSTANTIATIONS(obj_hp "${_inst}")
index bc2e40555c1a7a751e3a3e096af16027c1528798..2338d41e00504f8f479f1322786c163ddda89f25 100644 (file)
@@ -19,88 +19,12 @@ INCLUDE_DIRECTORIES(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
 FILE(GLOB _header
   ${CMAKE_SOURCE_DIR}/include/deal.II/lac/*.h
   )
-
-SET(_src
-  block_matrix_array.cc
-  block_sparse_matrix.cc
-  block_sparse_matrix_ez.cc
-  block_sparsity_pattern.cc
-  block_vector.cc
-  chunk_sparse_matrix.cc
-  chunk_sparsity_pattern.cc
-  compressed_set_sparsity_pattern.cc
-  compressed_simple_sparsity_pattern.cc
-  compressed_sparsity_pattern.cc
-  constraint_matrix.cc
-  full_matrix.cc
-  lapack_full_matrix.cc
-  matrix_lib.cc
-  matrix_out.cc
-  parallel_vector.cc
-  petsc_block_sparse_matrix.cc
-  petsc_full_matrix.cc
-  petsc_matrix_base.cc
-  petsc_matrix_free.cc
-  petsc_parallel_block_sparse_matrix.cc
-  petsc_parallel_block_vector.cc
-  petsc_parallel_sparse_matrix.cc
-  petsc_parallel_vector.cc
-  petsc_precondition.cc
-  petsc_solver.cc
-  petsc_sparse_matrix.cc
-  petsc_vector_base.cc
-  petsc_vector.cc
-  precondition_block.cc
-  precondition_block_ez.cc
-  relaxation_block.cc
-  slepc_solver.cc
-  slepc_spectral_transformation.cc
-  solver.cc
-  solver_control.cc
-  sparse_decomposition.cc
-  sparse_direct.cc
-  sparse_ilu.cc
-  sparse_matrix.cc
-  sparse_matrix_ez.cc
-  sparse_mic.cc
-  sparse_vanka.cc
-  sparsity_pattern.cc
-  sparsity_tools.cc
-  swappable_vector.cc
-  tridiagonal_matrix.cc
-  trilinos_block_sparse_matrix.cc
-  trilinos_block_vector.cc
-  trilinos_precondition.cc
-  trilinos_solver.cc
-  trilinos_sparse_matrix.cc
-  trilinos_sparsity_pattern.cc
-  trilinos_vector_base.cc
-  trilinos_vector.cc
-  vector.cc
-  vector_memory.cc
-  vector_view.cc
-)
-
-SET(_inst
-  block_sparse_matrix.inst.in
-  block_vector.inst.in
-  chunk_sparse_matrix.inst.in
-  constraint_matrix.inst.in
-  full_matrix.inst.in
-  lapack_full_matrix.inst.in
-  parallel_vector.inst.in
-  precondition_block.inst.in
-  relaxation_block.inst.in
-  solver.inst.in
-  sparse_matrix_ez.inst.in
-  sparse_matrix.inst.in
-  trilinos_sparse_matrix.inst.in
-  trilinos_vector_base.inst.in
-  vector.inst.in
-  vector_memory.inst.in
-  vector_view.inst.in
-)
+FILE(GLOB _src
+  ${CMAKE_CURRENT_SOURCE_DIR}/*.cc
+  )
+FILE(GLOB _inst
+  ${CMAKE_CURRENT_SOURCE_DIR}/*.inst.in
+  )
 
 DEAL_II_ADD_LIBRARY(obj_lac OBJECT ${_src} ${_header} ${_inst})
 EXPAND_INSTANTIATIONS(obj_lac "${_inst}")
-
index ee5c8bc58ad203a89a83f6e2c5f28bf02080560c..0188dfcf559a987089c22511d2a77a71e1b86c6f 100644 (file)
@@ -19,13 +19,11 @@ INCLUDE_DIRECTORIES(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
 FILE(GLOB _header
   ${CMAKE_SOURCE_DIR}/include/deal.II/matrix_free/*.h
   )
-
-SET(_src
-  matrix_free.cc
+FILE(GLOB _src
+  ${CMAKE_CURRENT_SOURCE_DIR}/*.cc
   )
-
-SET(_inst
-  matrix_free.inst.in
+FILE(GLOB _inst
+  ${CMAKE_CURRENT_SOURCE_DIR}/*.inst.in
   )
 
 DEAL_II_ADD_LIBRARY(obj_matrix_free OBJECT ${_src} ${_header} ${_inst})
index f58b0fcf63bede579df94c4e3a52322ff7b6a924..d41e2242abb5b1056f9cafa89ee6496faffeb1f2 100644 (file)
@@ -19,16 +19,11 @@ INCLUDE_DIRECTORIES(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
 FILE(GLOB _header
   ${CMAKE_SOURCE_DIR}/include/deal.II/meshworker/*.h
   )
-
-SET(_src
-  mesh_worker.cc
-  mesh_worker_info.cc
-  mesh_worker_vector_selector.cc
+FILE(GLOB _src
+  ${CMAKE_CURRENT_SOURCE_DIR}/*.cc
   )
-
-SET(_inst
-  mesh_worker_info.inst.in
-  mesh_worker_vector_selector.inst.in
+FILE(GLOB _inst
+  ${CMAKE_CURRENT_SOURCE_DIR}/*.inst.in
   )
 
 DEAL_II_ADD_LIBRARY(obj_meshworker OBJECT ${_src} ${_header} ${_inst})
index 40c223f30d56ce4eaef401ea02063dc4c212cb25..68e9970c7d9edc131a7bbe426b856529aaddf8fc 100644 (file)
@@ -19,25 +19,11 @@ INCLUDE_DIRECTORIES(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
 FILE(GLOB _header
   ${CMAKE_SOURCE_DIR}/include/deal.II/multigrid/*.h
   )
-
-SET(_src
-  mg_base.cc
-  mg_dof_handler.cc
-  mg_tools.cc
-  mg_transfer_block.cc
-  mg_transfer_component.cc
-  mg_transfer_prebuilt.cc
-  multigrid.cc
+FILE(GLOB _src
+  ${CMAKE_CURRENT_SOURCE_DIR}/*.cc
   )
-
-SET(_inst
-  mg_base.inst.in
-  mg_dof_handler.inst.in
-  mg_tools.inst.in
-  mg_transfer_block.inst.in
-  mg_transfer_component.inst.in
-  mg_transfer_prebuilt.inst.in
-  multigrid.inst.in
+FILE(GLOB _inst
+  ${CMAKE_CURRENT_SOURCE_DIR}/*.inst.in
   )
 
 DEAL_II_ADD_LIBRARY(obj_multigrid OBJECT ${_src} ${_header} ${_inst})
index df05c2eb6c97d7e344ef7e1007ac123c10d21148..229391117cb892760d855ab66faa0fca16cc19d4 100644 (file)
@@ -19,63 +19,12 @@ INCLUDE_DIRECTORIES(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
 FILE(GLOB _header
   ${CMAKE_SOURCE_DIR}/include/deal.II/numerics/*.h
   )
-
-SET(_src
-  data_out.cc
-  data_out_dof_data.cc
-  data_out_faces.cc
-  data_out_rotation.cc
-  data_out_stack.cc
-  data_postprocessor.cc
-  derivative_approximation.cc
-  dof_output_operator.cc
-  error_estimator.cc
-  error_estimator_1d.cc
-  fe_field_function.cc
-  matrix_tools.cc
-  histogram.cc
-  point_value_history.cc
-  solution_transfer.cc
-  solution_transfer_inst2.cc
-  solution_transfer_inst3.cc
-  solution_transfer_inst4.cc
-  time_dependent.cc
-  vector_tools_boundary.cc
-  vector_tools_constraints.cc
-  vector_tools_integrate_difference.cc
-  vector_tools_interpolate.cc
-  vector_tools_mean_value.cc
-  vector_tools_point_value.cc
-  vector_tools_project.cc
-  vector_tools_rhs.cc
+FILE(GLOB _src
+  ${CMAKE_CURRENT_SOURCE_DIR}/*.cc
   )
-
-SET(_inst
-  data_out.inst.in
-  data_out_dof_data.inst.in
-  data_out_faces.inst.in
-  data_out_rotation.inst.in
-  data_out_stack.inst.in
-  data_postprocessor.inst.in
-  derivative_approximation.inst.in
-  dof_output_operator.inst.in
-  error_estimator.inst.in
-  error_estimator_1d.inst.in
-  fe_field_function.inst.in
-  matrix_tools.inst.in
-  point_value_history.inst.in
-  solution_transfer.inst.in
-  time_dependent.inst.in
-  vector_tools_boundary.inst.in
-  vector_tools_constraints.inst.in
-  vector_tools_integrate_difference.inst.in
-  vector_tools_interpolate.inst.in
-  vector_tools_mean_value.inst.in
-  vector_tools_point_value.inst.in
-  vector_tools_project.inst.in
-  vector_tools_rhs.inst.in
+FILE(GLOB _inst
+  ${CMAKE_CURRENT_SOURCE_DIR}/*.inst.in
   )
 
 DEAL_II_ADD_LIBRARY(obj_numerics OBJECT ${_src} ${_header} ${_inst})
 EXPAND_INSTANTIATIONS(obj_numerics "${_inst}")
-

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.