summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2018-12-31 04:37:35 +0100
committerSlávek Banko <[email protected]>2018-12-31 04:39:22 +0100
commitb5f92b0b7f57fa274ad33def7011b0b8f78e5f5e (patch)
treeaf13ee771c7cbaa02acd05c88bcdff795914c25a /ConfigureChecks.cmake
parentd8a80ff0608f8ccfe125df0c275542e0024966a3 (diff)
downloadtdenetworkmanager-b5f92b0b7f57fa274ad33def7011b0b8f78e5f5e.tar.gz
tdenetworkmanager-b5f92b0b7f57fa274ad33def7011b0b8f78e5f5e.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 3dc2f27d3cf75b281bdfd1067b26a0b21bf3449a)
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 962ce3d..ae4517f 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -17,3 +17,18 @@ test_big_endian(WORDS_BIGENDIAN)
find_package( TQt )
find_package( TDE )
+
+
+##### gettext
+
+if( BUILD_TRANSLATIONS )
+ include( FindGettext )
+ if( GETTEXT_FOUND )
+ set( MSGFMT_EXECUTABLE ${GETTEXT_MSGFMT_EXECUTABLE}
+ CACHE FILEPATH "path to msgfmt executable" )
+ endif( GETTEXT_FOUND )
+
+ if( NOT MSGFMT_EXECUTABLE )
+ tde_message_fatal( "msgfmt is required but was not found on your system." )
+ endif( NOT MSGFMT_EXECUTABLE )
+endif( BUILD_TRANSLATIONS )