~sil2100/unity-2d/oneiric-security

« back to all changes in this revision

Viewing changes to po/CMakeLists.txt

  • Committer: Aurelien Gateau
  • Date: 2011-02-18 17:05:47 UTC
  • mto: This revision was merged to the branch mainline in revision 401.
  • Revision ID: aurelien.gateau@canonical.com-20110218170547-3cni3mx7eh8g2c8a
Started to setup cmake rules for translations

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
set(DOMAIN unity-2d)
 
2
 
 
3
find_program(GETTEXT_XGETTEST_EXECUTABLE xgettext)
 
4
 
 
5
add_custom_target(update-pot
 
6
    COMMAND find ${CMAKE_SOURCE_DIR} -name '*.cpp' > lst
 
7
    COMMAND ${GETTEXT_XGETTEST_EXECUTABLE}
 
8
        -o ${CMAKE_CURRENT_SOURCE_DIR}/${DOMAIN}.pot
 
9
        --files-from lst
 
10
        --qt
 
11
        --c++
 
12
        --keyword=tr
 
13
        --force-po
 
14
    COMMAND rm lst
 
15
        )
 
16
 
 
17
file(GLOB PO_FILES *.po)
 
18
 
 
19
gettext_create_translations(${CMAKE_CURRENT_SOURCE_DIR}/${DOMAIN}.pot ALL ${PO_FILES})