CMake + QtLinguist generates empty TS files
-
Hey,
I'm trying to automate the generation of TS and QM files. I'm using CMake.
The TS and QM files are correctly created, but they are empty. What am I doing wrong?
Here's my CMakeLists
Do you have any idea? Thanks -
@G_ka disclaimer: not that I've used Qt translation files via CMake. However, from your CMakeLists file:
message("Updating translations files") qt5_create_translation(QM_FILES ${TS_FILES} ${SOURCES} ${HEADERS} ${UI})
and checking documentation, it seems your passing arguments in wrong order
qt5_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} helloworld_en.ts helloworld_de.ts)
-
@Pablo-J-Rogina
Thank you. I was going to try your solution, but it looks like it fixed itself. Sorry for wasting your time, I guess I had to clean files or something like that. -
@G_ka said in CMake + QtLinguist generates empty TS files:
it looks like it fixed itself
ok, so when you confirm the issue is solved please don't forget to mark your post as such! Thanks