summaryrefslogtreecommitdiffstats
path: root/po/CMakeLists.txt
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-12-11 13:48:03 +0100
committerSlávek Banko <slavek.banko@axis.cz>2018-12-11 13:48:24 +0100
commitb3aafefc80e36225b9448a0cae69da63966bb519 (patch)
tree0a7172630c09e3d9b4165d4467b4609c99c9f223 /po/CMakeLists.txt
parente7aa8f1e7ff96614e124feea838d1386375c8ada (diff)
downloadknmap-b3aafefc80e36225b9448a0cae69da63966bb519.tar.gz
knmap-b3aafefc80e36225b9448a0cae69da63966bb519.zip
Add CMakeL10n rules.
Create translation template. Add CMake rules to build translations. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit d2676c2f4e573b44f60386f984b07cf851868a22)
Diffstat (limited to 'po/CMakeLists.txt')
-rw-r--r--po/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt
new file mode 100644
index 0000000..46fba83
--- /dev/null
+++ b/po/CMakeLists.txt
@@ -0,0 +1,6 @@
+# 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( )