From c8f7b3db6f8e5d8fd039d9ddbb01840b8c417dcd Mon Sep 17 00:00:00 2001 From: Kunlong Ma Date: Thu, 21 Mar 2024 19:10:18 +0800 Subject: [PATCH] ENH: copy pt-BR/BamabuStudio.mo to pt_br JIRA: NONE Signed-off-by: Kunlong Ma Change-Id: Ib974d498a6a38402a8d5c3252741d4d7d2850af3 --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f9b17ee55..7633676ef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -538,6 +538,14 @@ foreach(po_file ${BBL_L10N_PO_FILES}) ) endforeach() +# copy pt-BR/BamabuStudio.mo to pt_br/ +SET(PT_BR "${L10N_DIR}/pt-BR/BambuStudio.mo") +SET(PT_BR_DST "${L10N_DIR}/pt_br/") +add_custom_command( + TARGET gettext_po_to_mo POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_if_different ${PT_BR} ${PT_BR_DST} +) + find_package(NLopt 1.4 REQUIRED)