.. _dune_module_path:

dune_module_path
================

.. cmake_function:: dune_module_path

   .. cmake_param:: MODULE
      :single:
      :required:

      The name of the module.

   .. cmake_param:: RESULT
      :single:
      :required:

      The name of the variable to export the result.

   .. cmake_param:: CMAKE_MODULES
      :option:

      Set to return the path to cmake modules

   .. cmake_param:: BUILD_DIR
      :option:

      Set to return the path to the build directory

   .. cmake_param:: SOURCE_DIR
      :option:

      Set to return the include path of the module

   .. cmake_param:: SCRIPT_DIR
      :option:

      Set to return the CMake script dir


   Returns the specified path of the given module. This differs
   whether it is called from the actual module, or from a module
   requiring or suggesting this module. One and only one type of path
   may be requested.

