diff options
| author | gregory guy <gregory-tde@laposte.net> | 2021-08-17 13:06:41 +0200 |
|---|---|---|
| committer | Slávek Banko <slavek.banko@axis.cz> | 2021-08-29 18:19:53 +0200 |
| commit | 2bfc8db4f52395a57d7de9d241db254adc8924bc (patch) | |
| tree | 4cd6a97b186d66b2fd3284f2b0bf7526b9d76d19 /po/CMakeLists.txt | |
| parent | 5fc34460555f26bc7066fa5df7bcb157d80f4eb8 (diff) | |
| download | libkdcraw-2bfc8db4.tar.gz libkdcraw-2bfc8db4.zip | |
Conversion to the cmake building system.
Signed-off-by: gregory guy <gregory-tde@laposte.net>
some fixes and improvements.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 2e4e81b25e17309dadfcbce6cda68a0bf9516305)
Diffstat (limited to 'po/CMakeLists.txt')
| -rw-r--r-- | po/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt new file mode 100644 index 0000000..0e8b8f9 --- /dev/null +++ b/po/CMakeLists.txt @@ -0,0 +1,8 @@ +file( GLOB_RECURSE po_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ./*/*.po ) + +foreach( _po ${po_files} ) + string( REGEX REPLACE "/.*" "" _lang ${_po} ) + if( "${_linguas}" MATCHES "^;*$" OR ";${_linguas};" MATCHES ";${_lang};" ) + tde_create_translation( FILES ${_po} LANG ${_lang} ) + endif() +endforeach() |
