mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-23 11:13:00 +01:00
Add cmake automatic translation generation
This commit is contained in:
parent
6466906eac
commit
e0e37865fa
@ -12,6 +12,7 @@ find_package(
|
|||||||
Widgets
|
Widgets
|
||||||
Gui
|
Gui
|
||||||
WebEngine
|
WebEngine
|
||||||
|
LinguistTools
|
||||||
REQUIRED)
|
REQUIRED)
|
||||||
|
|
||||||
find_package(ZLIB REQUIRED)
|
find_package(ZLIB REQUIRED)
|
||||||
@ -56,7 +57,18 @@ set(headers app.h
|
|||||||
src/util.h
|
src/util.h
|
||||||
src/create.h)
|
src/create.h)
|
||||||
|
|
||||||
|
set(l10n
|
||||||
|
translations/ScreenPlay_de.ts
|
||||||
|
translations/ScreenPlay_en.ts
|
||||||
|
translations/ScreenPlay_es.ts
|
||||||
|
translations/ScreenPlay_fr.ts
|
||||||
|
translations/ScreenPlay_ko.ts
|
||||||
|
translations/ScreenPlay_ru.ts
|
||||||
|
translations/ScreenPlay_vi.ts
|
||||||
|
)
|
||||||
|
|
||||||
|
set_source_files_properties(${l10n} PROPERTIES OUTPUT_LOCATION "${CMAKE_CURRENT_SOURCE_DIR}/translations")
|
||||||
|
qt5_add_translation(qmFiles ${l10n})
|
||||||
|
|
||||||
#qt5_add_big_resources(resources resources.qrc)
|
#qt5_add_big_resources(resources resources.qrc)
|
||||||
|
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user