summaryrefslogtreecommitdiff
path: root/cmake/FindGettext.cmake
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2009-03-31 23:22:49 +0200
committerTomas Chvatal <scarabeus@gentoo.org>2009-03-31 23:22:49 +0200
commit5554c26c8d9a3efb42e3bbd6e4619fc48d24ed68 (patch)
tree472c740063b71aaabfd844282771b7936b56fb7f /cmake/FindGettext.cmake
parenta060c86f0db79d5489fc930699c00558525b80cd (diff)
Make gettext work.
Diffstat (limited to 'cmake/FindGettext.cmake')
-rw-r--r--cmake/FindGettext.cmake18
1 files changed, 16 insertions, 2 deletions
diff --git a/cmake/FindGettext.cmake b/cmake/FindGettext.cmake
index d32ad09..3e71657 100644
--- a/cmake/FindGettext.cmake
+++ b/cmake/FindGettext.cmake
@@ -3,6 +3,7 @@
# following values:
# GETTEXT_MSGMERGE_EXECUTABLE: the full path to the msgmerge tool.
# GETTEXT_MSGFMT_EXECUTABLE: the full path to the msgfmt tool.
+# GETTEXT_INCLUDES: just for including on windows, on POSIX it works just fine.
# GETTEXT_FOUND: True if gettext has been found.
#
# Additionally it provides the following macros:
@@ -13,10 +14,23 @@
# building the default target.
+FIND_PATH(GETTEXT_INCLUDE_DIR libintl.h
+ PATHS
+ ${CMAKE_SOURCE_DIR}/packaging/windows/Gettext/include
+ NO_DEFAULT_PATH
+)
-FIND_PROGRAM(GETTEXT_MSGMERGE_EXECUTABLE msgmerge)
+FIND_PROGRAM(GETTEXT_MSGMERGE_EXECUTABLE msgmerge
+ PATHS
+ ${CMAKE_SOURCE_DIR}/packaging/windows/Gettext/exe/
+ NO_DEFAULT_PATH
+)
-FIND_PROGRAM(GETTEXT_MSGFMT_EXECUTABLE msgfmt)
+FIND_PROGRAM(GETTEXT_MSGFMT_EXECUTABLE msgfmt
+ PATHS
+ ${CMAKE_SOURCE_DIR}/packaging/windows/Gettext/exe/
+ NO_DEFAULT_PATH
+)
MACRO(GETTEXT_CREATE_TRANSLATIONS _potFile _firstPoFile)