diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2018-12-11 14:26:49 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2018-12-11 14:26:49 +0100 |
commit | c94e47a08b64d2053f9f66ad991734f79d52ce3e (patch) | |
tree | 884aee38629f6729662de7110a09659b663d0866 /po/CMakeLists.txt | |
parent | 19df663383c4f546808b833331f1346501f14e83 (diff) | |
download | kbiff-c94e47a08b64d2053f9f66ad991734f79d52ce3e.tar.gz kbiff-c94e47a08b64d2053f9f66ad991734f79d52ce3e.zip |
Add CMakeL10n rules.
Create translation template.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'po/CMakeLists.txt')
-rw-r--r-- | po/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt index f5a2e1b..46fba83 100644 --- a/po/CMakeLists.txt +++ b/po/CMakeLists.txt @@ -1 +1,6 @@ -tde_create_translation( LANG auto OUTPUT_NAME ${PROJECT_NAME} ) +# build translations if some are already available + +file( GLOB _srcs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.po ) +if( _srcs ) + tde_create_translation( LANG auto OUTPUT_NAME ${PROJECT_NAME} ) +endif( ) |