Spec-Zone.ru › CMake 3.7

FindGettext

Поиск инструментов GNU gettext

Этот модуль ищет инструменты GNU gettext. Этот модуль определяет следующие значения:

GETTEXT_MSGMERGE_EXECUTABLE: the full path to the msgmerge tool.
GETTEXT_MSGFMT_EXECUTABLE: the full path to the msgfmt tool.
GETTEXT_FOUND: True if gettext has been found.
GETTEXT_VERSION_STRING: the version of gettext found (since CMake 2.8.8)

Кроме того, он предоставляет следующие макросы:

GETTEXT_CREATE_TRANSLATIONS ( выходнойФайл [ВСЕ] файл1 … файлN )

This will create a target "translations" which will convert the
given input po files into the binary output mo file. If the
ALL option is used, the translations will also be created when
building the default target.

GETTEXT_PROCESS_POT_FILE( <potfile> [ВСЕ] [УСТАНОВКА_ПУТЬ <destdir>] ЯЗЫКИ <lang1> <lang2> … )

Process the given pot file to mo files.
If INSTALL_DESTINATION is given then automatically install rules will
be created, the language subdirectory will be taken into account
(by default use share/locale/).
If ALL is specified, the pot file is processed when building the all traget.
It creates a custom target "potfile".

GETTEXT_PROCESS_PO_FILES( <язык> [ВСЕ] [УСТАНОВКА_ПУТЬ <dir>] ФАЙЛЫ_PO <po1> <po2> … )

Process the given po files to mo files for the given language.
If INSTALL_DESTINATION is given then automatically install rules will
be created, the language subdirectory will be taken into account
(by default use share/locale/).
If ALL is specified, the po files are processed when building the all traget.
It creates a custom target "pofiles".

Примечание

Если вы хотите использовать библиотеку Gettext (libintl), используйте FindIntl.

© 2000–2019 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.7/module/FindGettext.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API