FindGettext: Add support for Windows platform
There are some prebuilt binaries of Gettext available on Windows:
-
GnuWin32: https://gnuwin32.sourceforge.net/packages/gettext.htm
C:\Program Files (x86)\GnuWin32\bin
-
gettext-iconv-windows: https://github.com/mlocati/gettext-iconv-windows
C:\Program Files\gettext-iconv\bin
-
Git: https://gitforwindows.org/
C:\Program Files\Git\usr\bin
Can CMake Team improve the FindGettext.cmake
module to search Gettext tools accroding to the above directories on Windows?
Additionally, can CMake Team add the following tools' path variables as well?
GETTEXT_MSGATTRIB_EXECUTABLE
GETTEXT_MSGCAT_EXECUTABLE
GETTEXT_MSGCMP_EXECUTABLE
GETTEXT_MSGCOMM_EXECUTABLE
GETTEXT_MSGCONV_EXECUTABLE
GETTEXT_MSGEN_EXECUTABLE
GETTEXT_MSGEXEC_EXECUTABLE
GETTEXT_MSGFILTER_EXECUTABLE
GETTEXT_MSGFMT_EXECUTABLE
GETTEXT_MSGGREP_EXECUTABLE
GETTEXT_MSGINIT_EXECUTABLE
GETTEXT_MSGMERGE_EXECUTABLE
GETTEXT_MSGUNFMT_EXECUTABLE
GETTEXT_MSGUNIQ_EXECUTABLE
If possible or required, maybe define Imported Targets for each tools?
Edited by Haowei Hsu