From 85724cbd4ef273ab6ce06507013dc5e6087023a6 Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Mon, 19 Oct 2015 19:27:15 +0300 Subject: [PATCH] templates/gettext-config.h.in added. --- GettextCommonRules.cmake | 2 +- templates/gettext-config.h.in | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 templates/gettext-config.h.in diff --git a/GettextCommonRules.cmake b/GettextCommonRules.cmake index fa61ea7..22b675b 100644 --- a/GettextCommonRules.cmake +++ b/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" ) diff --git a/templates/gettext-config.h.in b/templates/gettext-config.h.in new file mode 100644 index 0000000..48b7f2d --- /dev/null +++ b/templates/gettext-config.h.in @@ -0,0 +1,11 @@ +#ifndef @GettextUniqueHeader@_H +#define @GettextUniqueHeader@_H + +#define GETTEXT_PACKAGE "@GETTEXT_PACKAGE@" +#include + +#ifdef WIN32 +#define _(String) dgettext (GETTEXT_PACKAGE, String) +#endif + +#endif // @GettextUniqueHeader@_H