aboutsummaryrefslogtreecommitdiff
path: root/attic/modules/FindMsgfmt.cmake
diff options
context:
space:
mode:
authorAllen Winter <allen.winter@kdab.com>2011-06-30 17:36:45 -0400
committerAllen Winter <allen.winter@kdab.com>2011-06-30 17:36:45 -0400
commitd2b2c90a06bf1f4a21df196430d1f95856900410 (patch)
treeaba9d2a48d7b2ac1e960e1b68218394524c7e6a8 /attic/modules/FindMsgfmt.cmake
parente15ffacc69242c89107afbfda6f8ece9f2b56633 (diff)
downloadextra-cmake-modules-d2b2c90a06bf1f4a21df196430d1f95856900410.tar.gz
extra-cmake-modules-d2b2c90a06bf1f4a21df196430d1f95856900410.tar.bz2
Move the modules, modules-test and systeminfo subdirs into 'attic'
Diffstat (limited to 'attic/modules/FindMsgfmt.cmake')
-rw-r--r--attic/modules/FindMsgfmt.cmake28
1 files changed, 28 insertions, 0 deletions
diff --git a/attic/modules/FindMsgfmt.cmake b/attic/modules/FindMsgfmt.cmake
new file mode 100644
index 00000000..47c61219
--- /dev/null
+++ b/attic/modules/FindMsgfmt.cmake
@@ -0,0 +1,28 @@
+# - Try to find msgfmt
+# Once done this will define
+#
+# MSGFMT_FOUND - system has msgfmt
+
+# Copyright (c) 2007, Montel Laurent <montel@kde.org>
+#
+# Redistribution and use is allowed according to the terms of the BSD license.
+# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
+
+### TODO: KDE4 needs msgfmt of version 0.15 or greater (cf. msgfmt --version )
+
+if(MSGFMT_EXECUTABLE)
+ set(MSGFMT_FOUND TRUE)
+else(MSGFMT_EXECUTABLE)
+
+ FIND_PROGRAM(MSGFMT_EXECUTABLE NAMES msgfmt)
+ if (MSGFMT_EXECUTABLE)
+ set(MSGFMT_FOUND TRUE)
+ else (MSGFMT_EXECUTABLE)
+ if (Msgfmt_FIND_REQUIRED)
+ message(SEND_ERROR "Could NOT find msgfmt program")
+ endif (Msgfmt_FIND_REQUIRED)
+ endif (MSGFMT_EXECUTABLE)
+ MARK_AS_ADVANCED(MSGFMT_EXECUTABLE)
+
+endif (MSGFMT_EXECUTABLE)
+