.. _add_dune_all_flags:

add_dune_all_flags
==================

.. cmake_function:: add_dune_all_flags

   .. cmake_param:: targets
      :single:
      :required:
      :positional:

      The targets to add the flags of all external libraries to.

   This function is superseded by :ref:`dune_target_enable_all_packages`.

Documentation of internal macros in this module:

dune_module_to_uppercase(upper_name module_name)

Converts a module name given by module_name into an uppercase string
upper_name where all dashes (-) are replaced by underscores (_)
Example: dune-common -> DUNE_COMMON

dune_module_information(MODULE_DIR [QUIET])

Parse ${MODULE_DIR}/dune.module and provide that information.
If the second argument is QUIET no status message is printed.

dune_create_dependency_tree()

Creates the dependency tree of the module.

dune_module_to_macro(_macro_name, _dune_module)

Converts a module name given by _dune_module into a string _macro_name
where all dashes (-) are removed and letters after a dash are capitalized
Example: dune-grid-howto -> DuneGridHowto

_macro_name: variable where the name will be stored.
_dune_module: the name of the dune module.

dune_regenerate_config_cmake()

Creates a new config_collected.h.cmake file in ${CMAKE_CURRENT_BINARY_DIR} that
consists of entries from ${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake
and includes non-private entries from the config.h.cmake files
of all dependent modules.
Finally config.h is created from config_collected.h.cmake.

