templates/gettext-config.h.in added.
This commit is contained in:
parent
1c6d185bf6
commit
85724cbd4e
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue