cmake plugin cleanups
This commit is contained in:
@@ -16,7 +16,13 @@ set(FORMS
|
||||
sketchmainwindow.ui
|
||||
)
|
||||
|
||||
add_library(zeiterfassung-plugins-sketchplugin SHARED ${HEADERS} ${SOURCES} ${RESOURCES} ${FORMS})
|
||||
set(OTHER_FILES
|
||||
sketchplugin.json
|
||||
)
|
||||
|
||||
add_library(zeiterfassung-plugins-sketchplugin SHARED ${HEADERS} ${SOURCES} ${RESOURCES} ${FORMS} ${OTHER_FILES})
|
||||
|
||||
set_target_properties(zeiterfassung-plugins-sketchplugin PROPERTIES OUTPUT_NAME sketchplugin PREFIX "")
|
||||
|
||||
target_link_libraries(zeiterfassung-plugins-sketchplugin Qt5::Core Qt5::Gui Qt5::Widgets zeiterfassungguilib zeiterfassungnetworklib sketchlib)
|
||||
|
||||
|
@@ -7,6 +7,8 @@
|
||||
#include <QMenu>
|
||||
#include <QAction>
|
||||
|
||||
#include "utils/fileutils.h"
|
||||
|
||||
#include "mainwindow.h"
|
||||
#include "sketchmainwindow.h"
|
||||
|
||||
@@ -15,9 +17,7 @@ SketchPlugin::SketchPlugin(QObject *parent) :
|
||||
{
|
||||
qDebug() << "called";
|
||||
|
||||
static auto dir = QDir(QCoreApplication::applicationDirPath()).absoluteFilePath(QStringLiteral("translations"));
|
||||
|
||||
if(m_translator.load(QLocale(), QStringLiteral("sketchplugin"), QStringLiteral("_"), dir))
|
||||
if(m_translator.load(QLocale(), QStringLiteral("sketchplugin"), QStringLiteral("_"), translationsDir()))
|
||||
{
|
||||
if(!QCoreApplication::installTranslator(&m_translator))
|
||||
{
|
||||
|
Reference in New Issue
Block a user