File tree 1 file changed +13
-6
lines changed
1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -458,14 +458,21 @@ if (BUILD_APPLICATION)
458
458
459
459
target_sources (${AppName} PRIVATE ${GF_I18N_RESOURCES} )
460
460
else ()
461
- qt_add_translations(${AppName}
462
- RESOURCE_PREFIX "/i18n"
463
- TS_FILES ${TS_FILES}
464
- SOURCES ${ALL_SOURCE_FILES}
465
- INCLUDE_DIRECTORIES ${CMAKE_SOURCE_DIR} /src)
461
+
462
+ add_custom_target (gftranslations ALL )
463
+
464
+ qt_add_lrelease(gftranslations
465
+ TS_FILES ${TS_FILES}
466
+ QM_FILES_OUTPUT_VARIABLE GF_TRANSLATIONS_QM)
467
+ qt_add_resources(${AppName} "gftranslations"
468
+ PREFIX "/i18n"
469
+ BASE ${CMAKE_CURRENT_BINARY_DIR}
470
+ FILES ${GF_TRANSLATIONS_QM} )
471
+
472
+ add_custom_target (qttranslations ALL )
473
+
466
474
file (GLOB QT_TRANSLATIONS_TS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_SOURCE_DIR} /third_party/qttranslations/translations/*.ts)
467
475
list (FILTER QT_TRANSLATIONS_TS INCLUDE REGEX ".*(qt|qtbase)_.*\. ts$" )
468
- add_custom_target (qttranslations ALL )
469
476
qt_add_lrelease(qttranslations
470
477
TS_FILES ${QT_TRANSLATIONS_TS}
471
478
QM_FILES_OUTPUT_VARIABLE QT_TRANSLATIONS_QM)
You can’t perform that action at this time.
0 commit comments