Browse Source

templates/gettext-config.h.in added.

master
Kolan Sh 6 years ago
parent
commit
85724cbd4e
  1. 2
      GettextCommonRules.cmake
  2. 11
      templates/gettext-config.h.in

2
GettextCommonRules.cmake

@ -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"
)

11
templates/gettext-config.h.in

@ -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…
Cancel
Save