summaryrefslogtreecommitdiffstats
path: root/po/CMakeLists.txt
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2018-12-11 17:58:11 +0100
committerSlávek Banko <[email protected]>2018-12-11 17:58:29 +0100
commite9607f43a4f3242bd9fc4576eca9f35b586749af (patch)
treecf571fc8945ab019c8de34486b197cf8e9cb4377 /po/CMakeLists.txt
parent2f270e334bf232c93e13c453450a9f2018b5f096 (diff)
downloadklcddimmer-e9607f43a4f3242bd9fc4576eca9f35b586749af.tar.gz
klcddimmer-e9607f43a4f3242bd9fc4576eca9f35b586749af.zip
Add CMakeL10n rules.
Create translation template. Add CMake rules to build translations. Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit f3600bef760f4d15a4838d613da53771f8c0e435)
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( )