Skip to content
Snippets Groups Projects
Commit 60c479a1 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

Link plugins into the executable

Q_IMPORT_QML_PLUGIN not linking on Windows
parent ddbed3a5
Branches WIP-coffee
No related tags found
No related merge requests found
......@@ -25,6 +25,6 @@ target_link_libraries(CoffeeMachine PRIVATE
Qt${QT_VERSION_MAJOR}::Gui
Qt${QT_VERSION_MAJOR}::Quick
Qt${QT_VERSION_MAJOR}::Qml
CoffeeMachineQml
CoffeeMachineImport
CoffeeMachineQmlplugin
CoffeeMachineImportplugin
)
......@@ -30,8 +30,8 @@
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QtQml/qqmlextensionplugin.h>
//Q_IMPORT_QML_PLUGIN(CoffeeMachineQml)
//Q_IMPORT_QML_PLUGIN(CoffeeMachineImport) //does not link
Q_IMPORT_QML_PLUGIN(CoffeeMachineQml)
Q_IMPORT_QML_PLUGIN(CoffeeMachineImport) //does not link
int main(int argc, char *argv[])
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment