templates/gettext-config.h.in added.

This commit is contained in:
Kolan Sh 2015-10-19 19:27:15 +03:00
parent 1c6d185bf6
commit 85724cbd4e
2 changed files with 12 additions and 1 deletions

View File

@ -17,7 +17,7 @@ ENDFOREACH()
# configure a header file for Gettext
STRING (TOUPPER "${CMAKE_PROJECT_NAME}" GettextUniqueHeader)
CONFIGURE_FILE (
"gettext-config.h.in"
"${CMAKE_SOURCE_DIR}/cmake/backbone/templates/gettext-config.h.in"
"${CMAKE_CURRENT_BINARY_DIR}/gettext-config.h"
)

View File

@ -0,0 +1,11 @@
#ifndef @GettextUniqueHeader@_H
#define @GettextUniqueHeader@_H
#define GETTEXT_PACKAGE "@GETTEXT_PACKAGE@"
#include <glib/gi18n-lib.h>
#ifdef WIN32
#define _(String) dgettext (GETTEXT_PACKAGE, String)
#endif
#endif // @GettextUniqueHeader@_H