[CMake] Qt translation handling

angroyer angroyer at lincolnelectric.com
Mon Dec 23 09:03:58 EST 2019


Another thing:

in case you don't want to re-generate the .ts files every time, you could
comment out:
file(GLOB_RECURSE TS_SOURCES "*.cpp" "*.h" "*.ui")
qt5_create_translation(QM_FILES ${TS_FILES} ${TS_SOURCES})

and use instead the following line with the .ts files already committed in
your project:
qt5_add_translation(QM_FILES ${TS_FILES})

Cordialement
Anthony




--
Sent from: http://cmake.3232098.n2.nabble.com/


More information about the CMake mailing list