1 # cmake <http://www.cmake.org> build file for Gammu
2 # Copyright © 2007 - 2010 Michal Čihař
3 # vim: expandtab sw=4 ts=4 sts=4:
5 project(Gammu-Locales C)
8 macro_optional_find_package(Gettext)
10 option(INSTALL_LOC "Install locales data" ON)
12 if(GETTEXT_FOUND AND LIBINTL_LIB_FOUND AND INSTALL_LOC)
14 file(GLOB LOCALEFILES "*/gammu.po")
15 file(GLOB LIBLOCALEFILES "*/libgammu.po")
17 GETTEXT_CREATE_TRANSLATIONS("gammu.pot" ALL ${LOCALEFILES})
18 GETTEXT_CREATE_TRANSLATIONS("libgammu.pot" ALL ${LIBLOCALEFILES})
19 endif(GETTEXT_FOUND AND LIBINTL_LIB_FOUND AND INSTALL_LOC)