1
# Copyright (C) 2013 Christian Dywan <christian@twotoasts.de>
5
set(LANGUAGES $ENV{LINGUAS})
7
file(GLOB POTFILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.po")
8
string(REPLACE ".po" " " LANGUAGES ${POTFILES})
10
message(STATUS "gettext found: ${LANGUAGES}")
11
string(REPLACE " " ";" LANGUAGES ${LANGUAGES})
12
foreach(LANG ${LANGUAGES})
13
GETTEXT_PROCESS_PO_FILES(${LANG} ALL PO_FILES "${LANG}.po")
16
message(STATUS "gettext not found")