Automatically define GETTEXT_PACKAGE.

This commit is contained in:
Kolan Sh 2014-10-26 16:18:42 +03:00
parent 25a02663e2
commit 0d565bda5f
3 changed files with 3 additions and 0 deletions

View File

@ -15,4 +15,5 @@ VALA_PRECOMPILE (VALA_C ${BinSources}
PKG_CHECK_MODULES (PKGS REQUIRED ${BinPackages})
INCLUDE_DIRECTORIES (${PKGS_INCLUDE_DIRS})
ADD_EXECUTABLE (${BinName} ${VALA_C} ${BinExtraSources})
ADD_DEFINITIONS (-DGETTEXT_PACKAGE="${PROJECT_LOWERCASE_NAME}-${MAJOR}")
TARGET_LINK_LIBRARIES (${BinName} ${PKGS_LIBRARIES} ${BinLinkLibs})

View File

@ -17,6 +17,7 @@ VALA_PRECOMPILE (VALA_C ${LibSources}
PKG_CHECK_MODULES (PKGS REQUIRED ${LibPkgModules})
INCLUDE_DIRECTORIES (${PKGS_INCLUDE_DIRS})
ADD_LIBRARY (${LibName} SHARED ${VALA_C} ${LibExtraSources})
ADD_DEFINITIONS (-DGETTEXT_PACKAGE="${PROJECT_LOWERCASE_NAME}-${MAJOR}")
TARGET_LINK_LIBRARIES (${LibName} ${PKGS_LIBRARIES} ${LibLinkLibs})
SET_TARGET_PROPERTIES (${LibName} PROPERTIES VERSION ${MAJOR}.${MINOR}.${PATCH})
SET_TARGET_PROPERTIES (${LibName} PROPERTIES SOVERSION ${MAJOR})

View File

@ -13,4 +13,5 @@ VALA_PRECOMPILE (VALA_C ${PluginSources}
PKG_CHECK_MODULES (PKGS REQUIRED ${PluginPackages})
INCLUDE_DIRECTORIES (${PKGS_INCLUDE_DIRS})
ADD_LIBRARY (${PluginName} SHARED ${VALA_C} ${PluginExtraSources})
ADD_DEFINITIONS (-DGETTEXT_PACKAGE="${PROJECT_LOWERCASE_NAME}-${MAJOR}")
TARGET_LINK_LIBRARIES (${PluginName} ${PKGS_LIBRARIES} ${PluginLinkLibs})