include translations of the FreeCAD Base

This commit is contained in:
Ronny Standtke
2024-05-10 14:31:33 +02:00
parent 1c618ffd8f
commit fa2a3e0f54

View File

@@ -152,16 +152,12 @@ endif ()
SOURCE_GROUP("pycxx" FILES ${PYCXX_SOURCES})
# auto-generate resource file with all available translations
set (FreeCADBase_TR_QRC ${CMAKE_CURRENT_BINARY_DIR}/Resources/Base_translation.qrc)
qt_find_and_add_translation(QM_SRCS "Resources/translations/Base_*.ts"
${CMAKE_CURRENT_BINARY_DIR}/Resources/translations)
qt_create_resource_file_prefix(${FreeCADBase_TR_QRC} ${QM_SRCS})
set(FreeCADBase_RES_SRCS
Resources/translation.qrc
${FreeCADBase_TR_QRC}
)
qt_add_resources(FreeCADBase_QRC_SRCS ${FreeCADBase_RES_SRCS})
qt_find_and_add_translation(QM_SRCS "Resources/translations/*_*.ts"
${CMAKE_CURRENT_BINARY_DIR}/Resources/translations)
qt_create_resource_file(${FreeCADBase_TR_QRC} ${QM_SRCS})
qt_add_resources(FreeCADBase_QRC_SRCS ${FreeCADBase_TR_QRC})
SET(FreeCADBase_XML_SRCS
AxisPy.xml
@@ -344,6 +340,7 @@ SET(FreeCADBase_HPP_SRCS
SET(FreeCADBase_SRCS
${PYCXX_SOURCES}
${FreeCADBase_QRC_SRCS}
${FreeCADBase_CPP_SRCS}
${FreeCADBase_HPP_SRCS}
${FreeCADBase_XML_SRCS}