build: Generate version file and cmake config files with cmake modules
* cmake/modules/ECMSetupVersion.cmake, cmake/modules/ECMVersionHeader.h.in: New. * cmake/modules/G10CMakeSettings.cmake: Enable versioned DLLs for MinGW builds. * src/CMakeLists.txt: Remove unused variables. Use ecm_setup_version instead of configure_file to generate gpgmepp_version.h and GpgmeppConfigVersion.cmake. Use configure_package_config_file instead of configure_file to generate the GpgmeppConfig.cmake files. Generate the exported GpgmeppTargets*.cmake files and install them. Install the Find modules. * src/GpgmeppConfig.cmake.in: New. * src/GpgmeppConfig-msvc.cmake.in.in, src/GpgmeppConfig-w32.cmake.in.in, src/GpgmeppConfig.cmake.in.in, src/GpgmeppConfigVersion.cmake.in, src/gpgmepp_version.h.in: Remove.
The ECM cmake modules were copied from KDE's extra-cmake-modules. I have
just changed the copyright notices to GNU style and I have added the
license text verbatim.
- GnuPG-bug-id: T7262