diff options
Diffstat (limited to 'resources/localization/CMakeLists.txt')
-rw-r--r-- | resources/localization/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/resources/localization/CMakeLists.txt b/resources/localization/CMakeLists.txt new file mode 100644 index 000000000..8a7fba068 --- /dev/null +++ b/resources/localization/CMakeLists.txt @@ -0,0 +1,8 @@ +set(L10N_DIR "${PROJECT_SOURCE_DIR}/resources/localization") +add_custom_target(pot + COMMAND xgettext --keyword=L --from-code=UTF-8 --debug + -f "${L10N_DIR}/list.txt" + -o "${L10N_DIR}/Slic3rPE.pot" + WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} + COMMENT "Generate pot file from strings in the source tree" +) |