file(STRINGS LINGUAS langs_unstripped REGEX "^[a-zA-Z_@]+") set(langs) FOREACH(var ${langs_unstripped}) string(STRIP ${var} lang) list(APPEND langs ${lang}) ENDFOREACH() FOREACH(lang ${langs}) CONFIGURE_FILE(${lang}.po ${lang}.po COPYONLY) ENDFOREACH() if(MOO_INSTALL_EVERYTHING) set(_MOO_INSTALL_DESTINATION INSTALL_DESTINATION "share/locale") endif() GETTEXT_PROCESS_POT_FILE(${GETTEXT_PACKAGE_GSV}.pot ALL ${_MOO_INSTALL_DESTINATION} LANGUAGES ${langs})