summaryrefslogtreecommitdiffstats
path: root/src/linguist/linguist/doc/snippets/cmake-macros/examples.cmake
blob: 542ba7a6fa28ad422fbe01b7756e8908e2c4a186 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#! [qt5_add_translation]
qt5_add_translation(qmFiles helloworld_en.ts helloworld_de.ts)
#! [qt5_add_translation]

#! [qt5_add_translation_output_location]
set(TS_FILES helloworld_en.ts helloworld_de.ts)
set_source_files_properties(${TS_FILES} PROPERTIES OUTPUT_LOCATION "l10n")
qt5_add_translation(qmFiles ${TS_FILES})
#! [qt5_add_translation_output_location]

#! [qt5_create_translation]
qt5_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} helloworld_en.ts helloworld_de.ts)
#! [qt5_create_translation]