This function is the equivalent of the corresponding [CMake function](https://cmake.org/cmake/help/v3.11/module/CMakePackageConfigHelpers.html#generating-a-package-version-file),
it generates a `name` package version file.
*`name`: the name of the package.
*`version`: the version of the generated package file.
*`compatibility`: a string indicating the kind of compatibility, the accepted values are
`AnyNewerVersion`, `SameMajorVersion`, `SameMinorVersion` or `ExactVersion`.
It defaults to `AnyNewerVersion`. Depending on your cmake installation some kind of
compatibility may not be available.
*`install_dir`: optional installation directory, it defaults to `$(libdir)/cmake/$(name)`
This function is the equivalent of the corresponding [CMake function](https://cmake.org/cmake/help/v3.11/module/CMakePackageConfigHelpers.html#generating-a-package-configuration-file),
it generates a `name` package configuration file from the `input` template file. Just like the cmake function
in this file the `@PACKAGE_INIT@` statement will be replaced by the appropriate piece of cmake code.
The equivalent `PATH_VARS` argument is given through the `configuration` parameter.
*`name`: the name of the package.
*`input`: the template file where that will be treated for variable substitutions contained in `configuration`.
*`install_dir`: optional installation directory, it defaults to `$(libdir)/cmake/$(name)`.
*`configuration`: a `configuration_data` object that will be used for variable substitution in the template file.