~unity-team/libusermetrics/trunk

« back to all changes in this revision

Viewing changes to po/CMakeLists.txt

  • Committer: Bileto Bot
  • Author(s): Pete Woods
  • Date: 2016-12-08 10:50:56 UTC
  • mfrom: (233.1.7 trunk)
  • Revision ID: ci-train-bot@canonical.com-20161208105056-teqkoq2t6ktx9d2e
Compatibility with unversioned cmake-extras modules

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
include(UseXGettext)
2
 
 
3
 
add_translations_directory(${GETTEXT_PACKAGE})
4
 
 
5
 
add_translations_catalog(
 
1
find_package(Intltool REQUIRED)
 
2
 
 
3
intltool_update_potfile(
 
4
    KEYWORDS "_" "_:1,2" "N_" "N_:1,2"
6
5
    GETTEXT_PACKAGE ${GETTEXT_PACKAGE}
7
6
    COPYRIGHT_HOLDER "Canonical Ltd."
8
 
    SOURCE_DIRECTORIES "${CMAKE_SOURCE_DIR}/src"
 
7
)
 
8
 
 
9
intltool_install_translations(
 
10
    ALL
 
11
    GETTEXT_PACKAGE ${GETTEXT_PACKAGE}
9
12
)
10
13