all repos — mgba @ 7bc6c579ce332efe0097c14ba4e40ccb26872f86

mGBA Game Boy Advance Emulator

src/platform/qt/ts.cmake (view raw)

1file(GLOB TRANSLATION_FILES "${QM_BASE}/*.qm")
2file(WRITE ${TRANSLATION_QRC} "<RCC>\n\t<qresource prefix=\"/translations/\">\n")
3message(STATUS ${TRANSLATION_FILES})
4foreach(TS ${TRANSLATION_FILES})
5	message(STATUS ${TS})
6	get_filename_component(TS_BASE "${TS}" NAME)
7	file(APPEND ${TRANSLATION_QRC} "\t\t<file>${TS_BASE}</file>\n")
8endforeach()
9file(APPEND ${TRANSLATION_QRC} "\t</qresource>\n</RCC>")