From e2341032ace416019be2a7902e7de7f1c1be0197 Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Tue, 14 Feb 2017 19:08:48 +0100 Subject: [PATCH] Add stuff to sync po files --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0be8778..752ba08 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,6 +21,7 @@ file (GLOB_RECURSE data resources/data/*) file (GLOB_RECURSE image resources/image/*) file (GLOB_RECURSE movie resources/movie/*) file (GLOB_RECURSE sound resources/sound/*) +file (GLOB_RECURSE po resources/translations/*.po) include_directories (${CMAKE_CURRENT_SOURCE_DIR}) @@ -79,7 +80,7 @@ target_link_libraries (planetblupi PUBLIC find_package (Gettext) -set (_potFile ${PROJECT_NAME}.pot) +set (_potFile ${CMAKE_CURRENT_SOURCE_DIR}/resources/translations/${PROJECT_NAME}.pot) add_custom_command (OUTPUT ${_potFile} COMMAND xgettext --keyword=translate --keyword=ptranslate:1c,2 -o ${_potFile} ${sources} @@ -92,4 +93,4 @@ add_custom_target (pot_file ALL ${_all} DEPENDS ${_potFile} ) -# GETTEXT_CREATE_TRANSLATIONS (${PROJECT_NAME}.pot ALL en.po) +GETTEXT_CREATE_TRANSLATIONS (${_potFile} ALL ${po})