INCLUDE(setup_compiler_flags)
-#
-# A custom target for all the target dependencies that have to be
-# build/prepared before the deal.II library can be compiled
-#
-ADD_CUSTOM_TARGET(deal_ii_target_dependencies)
-
-
#
# Run all system checks:
#
#
# library, documentation, compat_files, project_config
#
-# And a release and debug target (depending on configuration)
-#
ADD_CUSTOM_TARGET(library)
-IF(CMAKE_BUILD_TYPE MATCHES "Debug")
- ADD_CUSTOM_TARGET(debug)
-
- ADD_DEPENDENCIES(library ${DEAL_II_BASE_NAME}${DEAL_II_DEBUG_SUFFIX})
- ADD_DEPENDENCIES(debug ${DEAL_II_BASE_NAME}${DEAL_II_DEBUG_SUFFIX})
-ENDIF()
-
-IF(CMAKE_BUILD_TYPE MATCHES "Release")
- ADD_CUSTOM_TARGET(release)
-
- ADD_DEPENDENCIES(library ${DEAL_II_BASE_NAME})
- ADD_DEPENDENCIES(release ${DEAL_II_BASE_NAME})
-ENDIF()
+FOREACH(build ${DEAL_II_BUILD_TYPES})
+ ADD_DEPENDENCIES(library ${DEAL_II_BASE_NAME}${DEAL_II_${build}_SUFFIX})
+ENDFOREACH()
IF(DEAL_II_COMPONENT_DOCUMENTATION)
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/deal.II/lac/lapack_templates.h
)
-ADD_DEPENDENCIES(deal_ii_target_dependencies lapack_templates)
-
-
#
# Add a rule on how to install the header files:
#
)
DEAL_II_ADD_LIBRARY(obj_base OBJECT ${src_base})
-DEAL_II_ADD_DEPENDENCIES(obj_base deal_ii_target_dependencies)
DEAL_II_ADD_LIBRARY(obj_distributed OBJECT ${src})
EXPAND_INSTANTIATIONS(obj_distributed "${inst_in_files}")
-DEAL_II_ADD_DEPENDENCIES(obj_distributed deal_ii_target_dependencies)
+
DEAL_II_ADD_LIBRARY(obj_dofs OBJECT ${src})
EXPAND_INSTANTIATIONS(obj_dofs "${inst_in_files}")
-DEAL_II_ADD_DEPENDENCIES(obj_dofs deal_ii_target_dependencies)
+
DEAL_II_ADD_LIBRARY(obj_fe OBJECT ${src})
EXPAND_INSTANTIATIONS(obj_fe "${inst_in_files}")
-DEAL_II_ADD_DEPENDENCIES(obj_fe deal_ii_target_dependencies)
+
DEAL_II_ADD_LIBRARY(obj_grid OBJECT ${src})
EXPAND_INSTANTIATIONS(obj_grid "${inst_in_files}")
-DEAL_II_ADD_DEPENDENCIES(obj_grid deal_ii_target_dependencies)
+
DEAL_II_ADD_LIBRARY(obj_hp OBJECT ${src})
EXPAND_INSTANTIATIONS(obj_hp "${inst_in_files}")
-DEAL_II_ADD_DEPENDENCIES(obj_hp deal_ii_target_dependencies)
+
DEAL_II_ADD_LIBRARY(obj_lac OBJECT ${src})
EXPAND_INSTANTIATIONS(obj_lac "${inst_in_files}")
-DEAL_II_ADD_DEPENDENCIES(obj_lac deal_ii_target_dependencies)
+
+#
+# TODO: Remove this dependency when lapack_templates is removed
+#
+ADD_DEPENDENCIES(obj_lac.inst lapack_templates)
DEAL_II_ADD_LIBRARY(obj_multigrid OBJECT ${src})
EXPAND_INSTANTIATIONS(obj_multigrid "${inst_in_files}")
-DEAL_II_ADD_DEPENDENCIES(obj_multigrid deal_ii_target_dependencies)
+
DEAL_II_ADD_LIBRARY(obj_numerics OBJECT ${src})
EXPAND_INSTANTIATIONS(obj_numerics "${inst_in_files}")
-DEAL_II_ADD_DEPENDENCIES(obj_numerics deal_ii_target_dependencies)
+