summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-12-24 15:08:52 +0100
committerSlávek Banko <slavek.banko@axis.cz>2018-12-24 15:08:52 +0100
commit3b5c4c74473e99bee211d454d857fe325b4c55aa (patch)
tree980d7661e1852563bf3cc379648f3a6a933875c0 /ConfigureChecks.cmake
parent4b5f63264ed191a01cfda1b23be47a951f69e2a5 (diff)
downloadgwenview-i18n-3b5c4c74473e99bee211d454d857fe325b4c55aa.tar.gz
gwenview-i18n-3b5c4c74473e99bee211d454d857fe325b4c55aa.zip
Conversion to the CMake building system.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake27
1 files changed, 27 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
new file mode 100644
index 0000000..7fff420
--- /dev/null
+++ b/ConfigureChecks.cmake
@@ -0,0 +1,27 @@
+###########################################
+# #
+# Improvements and feedback are welcome #
+# #
+# This file is released under GPL >= 3 #
+# #
+###########################################
+
+
+# required stuff
+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 )