Automatically define GETTEXT_PACKAGE.
This commit is contained in:
parent
25a02663e2
commit
0d565bda5f
|
@ -15,4 +15,5 @@ VALA_PRECOMPILE (VALA_C ${BinSources}
|
||||||
PKG_CHECK_MODULES (PKGS REQUIRED ${BinPackages})
|
PKG_CHECK_MODULES (PKGS REQUIRED ${BinPackages})
|
||||||
INCLUDE_DIRECTORIES (${PKGS_INCLUDE_DIRS})
|
INCLUDE_DIRECTORIES (${PKGS_INCLUDE_DIRS})
|
||||||
ADD_EXECUTABLE (${BinName} ${VALA_C} ${BinExtraSources})
|
ADD_EXECUTABLE (${BinName} ${VALA_C} ${BinExtraSources})
|
||||||
|
ADD_DEFINITIONS (-DGETTEXT_PACKAGE="${PROJECT_LOWERCASE_NAME}-${MAJOR}")
|
||||||
TARGET_LINK_LIBRARIES (${BinName} ${PKGS_LIBRARIES} ${BinLinkLibs})
|
TARGET_LINK_LIBRARIES (${BinName} ${PKGS_LIBRARIES} ${BinLinkLibs})
|
||||||
|
|
|
@ -17,6 +17,7 @@ VALA_PRECOMPILE (VALA_C ${LibSources}
|
||||||
PKG_CHECK_MODULES (PKGS REQUIRED ${LibPkgModules})
|
PKG_CHECK_MODULES (PKGS REQUIRED ${LibPkgModules})
|
||||||
INCLUDE_DIRECTORIES (${PKGS_INCLUDE_DIRS})
|
INCLUDE_DIRECTORIES (${PKGS_INCLUDE_DIRS})
|
||||||
ADD_LIBRARY (${LibName} SHARED ${VALA_C} ${LibExtraSources})
|
ADD_LIBRARY (${LibName} SHARED ${VALA_C} ${LibExtraSources})
|
||||||
|
ADD_DEFINITIONS (-DGETTEXT_PACKAGE="${PROJECT_LOWERCASE_NAME}-${MAJOR}")
|
||||||
TARGET_LINK_LIBRARIES (${LibName} ${PKGS_LIBRARIES} ${LibLinkLibs})
|
TARGET_LINK_LIBRARIES (${LibName} ${PKGS_LIBRARIES} ${LibLinkLibs})
|
||||||
SET_TARGET_PROPERTIES (${LibName} PROPERTIES VERSION ${MAJOR}.${MINOR}.${PATCH})
|
SET_TARGET_PROPERTIES (${LibName} PROPERTIES VERSION ${MAJOR}.${MINOR}.${PATCH})
|
||||||
SET_TARGET_PROPERTIES (${LibName} PROPERTIES SOVERSION ${MAJOR})
|
SET_TARGET_PROPERTIES (${LibName} PROPERTIES SOVERSION ${MAJOR})
|
||||||
|
|
|
@ -13,4 +13,5 @@ VALA_PRECOMPILE (VALA_C ${PluginSources}
|
||||||
PKG_CHECK_MODULES (PKGS REQUIRED ${PluginPackages})
|
PKG_CHECK_MODULES (PKGS REQUIRED ${PluginPackages})
|
||||||
INCLUDE_DIRECTORIES (${PKGS_INCLUDE_DIRS})
|
INCLUDE_DIRECTORIES (${PKGS_INCLUDE_DIRS})
|
||||||
ADD_LIBRARY (${PluginName} SHARED ${VALA_C} ${PluginExtraSources})
|
ADD_LIBRARY (${PluginName} SHARED ${VALA_C} ${PluginExtraSources})
|
||||||
|
ADD_DEFINITIONS (-DGETTEXT_PACKAGE="${PROJECT_LOWERCASE_NAME}-${MAJOR}")
|
||||||
TARGET_LINK_LIBRARIES (${PluginName} ${PKGS_LIBRARIES} ${PluginLinkLibs})
|
TARGET_LINK_LIBRARIES (${PluginName} ${PKGS_LIBRARIES} ${PluginLinkLibs})
|
||||||
|
|
Loading…
Reference in New Issue