cmake: restore out-of-source build

Qt translations have to be compiled in a shared library or executable,
and since we use static libraries for the components, webui translation
files have to be compiled into the main executable.
This commit is contained in:
Eugene Shalygin
2018-10-13 20:11:14 +02:00
parent ff72be9c2d
commit e590fff2fe
6 changed files with 111 additions and 69 deletions

View File

@@ -27,7 +27,7 @@ SOURCES += \
$$PWD/webapplication.cpp \
$$PWD/webui.cpp
RESOURCES += $$PWD/www/webui.qrc
RESOURCES += $$PWD/www/webui.qrc $$PWD/www/translations/webui_translations.qrc
# WebUI Translation
isEmpty(QMAKE_LRELEASE) {