Is there a cmake variable like QT_TRANSLATIONS_DIR which holds the real path?
-
I want ship qt library's translations with my app, and write something in
CMakeLists.txt
as the following for debuging:# this just works for debugging add_custom_command( TARGET myapp POST_BUILD COMMAND ${LCONVERT} ARGS -o "${PROJECT_BINARY_DIR}/qt.qm" "${QT_TRANSLATIONS_DIR}/*.qm" ) # this works both for debugging and release qt_generate_deploy_app_script( TARGET myapp OUTPUT_SCRIPT deploy_script # NO_UNSUPPORTED_PLATFORM_ERROR )
But, there is no such a variable named
QT_TRANSLATIONS_DIR
!
Although, there is a variable namedQT6_INSTALL_TRANSLATIONS
, but it is not set correctly(for app developer)!Help!!
-
I want ship qt library's translations with my app, and write something in
CMakeLists.txt
as the following for debuging:# this just works for debugging add_custom_command( TARGET myapp POST_BUILD COMMAND ${LCONVERT} ARGS -o "${PROJECT_BINARY_DIR}/qt.qm" "${QT_TRANSLATIONS_DIR}/*.qm" ) # this works both for debugging and release qt_generate_deploy_app_script( TARGET myapp OUTPUT_SCRIPT deploy_script # NO_UNSUPPORTED_PLATFORM_ERROR )
But, there is no such a variable named
QT_TRANSLATIONS_DIR
!
Although, there is a variable namedQT6_INSTALL_TRANSLATIONS
, but it is not set correctly(for app developer)!Help!!
You can install your translation in whatever location you want.