Support for loading language .qm files as Qt resource

This commit is contained in:
Magnus Hellströmer
2024-09-09 00:45:15 +02:00
parent 05dfd10952
commit 373fcfb4ea
4 changed files with 37 additions and 6 deletions

View File

@@ -69,3 +69,7 @@ else()
endif()
message("QET_COMPONENTS :" ${QET_COMPONENTS})
message("Qt version :" ${Qt${QT_VERSION_MAJOR}_VERSION})
if(QMFILES_AS_RESOURCE)
add_definitions(-DQMFILES_AS_RESOURCE)
endif()

View File

@@ -33,3 +33,6 @@ add_definitions(-DQT_MESSAGELOGCONTEXT)
# Build with KF6
option(BUILD_WITH_KF6 "Build with KF6" ON)
# Use translations as a Qt resource
option(QMFILES_AS_RESOURCE "Use .qm files as Qt resource" ON)