# cmake build file for Gammu # Copyright © 2007 - 2018 Michal Čihař # vim: expandtab sw=4 ts=4 sts=4: project(Gammu-Locales C) # We need gettext macro_optional_find_package(Gettext) option(INSTALL_LOC "Install locales data" ON) if(GETTEXT_FOUND AND LIBINTL_LIB_FOUND AND INSTALL_LOC) # List of locales file(GLOB LOCALEFILES "*/gammu.po") file(GLOB LIBLOCALEFILES "*/libgammu.po") # Generate mo files GETTEXT_CREATE_TRANSLATIONS("gammu.pot" ALL ${LOCALEFILES}) GETTEXT_CREATE_TRANSLATIONS("libgammu.pot" ALL ${LIBLOCALEFILES}) endif(GETTEXT_FOUND AND LIBINTL_LIB_FOUND AND INSTALL_LOC)