~pkunal-parmar/ubuntu-calendar-app/ICalImport

« back to all changes in this revision

Viewing changes to po/CMakeLists.txt

  • Committer: Sergio Schvezov
  • Date: 2014-01-18 23:29:11 UTC
  • mto: This revision was merged to the branch mainline in revision 184.
  • Revision ID: sergio.schvezov@canonical.com-20140118232911-p3jdkkomszdl2l70
Adding cmake 

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
set(POT_FILE ${DOMAIN}.pot)
6
6
file(GLOB PO_FILES *.po)
7
7
 
8
 
add_custom_target(${POT_FILE} ALL
9
 
    COMMENT "Generating translation template"
10
 
    COMMAND ${INTLTOOL_EXTRACT} --update --type=gettext/ini
11
 
        --srcdir=${CMAKE_SOURCE_DIR} ${DESKTOP_FILE}.in.in
12
 
    COMMAND ${GETTEXT_XGETTEXT_EXECUTABLE} -o ${POT_FILE}
13
 
        -D ${CMAKE_CURRENT_SOURCE_DIR}
14
 
        -D ${CMAKE_CURRENT_BINARY_DIR}
15
 
        --from-code=UTF-8
16
 
        --c++ --qt --add-comments=TRANSLATORS
17
 
        --keyword=tr --keyword=tr:1,2 --keyword=N_
18
 
        --package-name='${PROJECT}'
19
 
        --copyright-holder='Canonical Ltd.'
20
 
        ${I18N_SRC_FILES}
21
 
    COMMAND ${CMAKE_COMMAND} -E copy ${POT_FILE} ${CMAKE_CURRENT_SOURCE_DIR})
 
8
add_custom_target(${POT_FILE}
 
9
                  COMMAND ${GETTEXT_XGETTEXT_EXECUTABLE} -o ${POT_FILE}
 
10
                          -D ${CMAKE_SOURCE_DIR}
 
11
                          --from-code=UTF-8
 
12
                          --c++ --qt --add-comments=TRANSLATORS
 
13
                          --keyword=tr --keyword=tr:1,2
 
14
                                                  --package-name='${PROJECT}'
 
15
                          --copyright-holder='Canonical Ltd.'
 
16
                          ${I18N_SRC_FILES})
22
17
 
23
18
foreach(PO_FILE ${PO_FILES})
24
19
    get_filename_component(LANG ${PO_FILE} NAME_WE)