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

WIP statically link all backing libs

parent bda2ff1b
Branches static-linking
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ qt_add_qml_module(CoffeeMachine
QML_FILES main.qml
)
set(QT_QML_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/qml)
## set(QT_QML_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/qml)
add_subdirectory(CoffeeMachineQml)
add_subdirectory(imports/CoffeeMachineImport)
......@@ -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
CoffeeMachineQml
CoffeeMachineImport
)
qt_add_library(CoffeeMachineQml STATIC)
qt6_add_qml_module(CoffeeMachineQml
URI "CoffeeMachineQml"
VERSION 1.0
PLUGIN_TARGET CoffeeMachineQml
NO_PLUGIN
QML_FILES
ApplicationFlowForm.ui.qml
ApplicationFlow.qml
......
qt_add_library(CoffeeMachineImport STATIC)
set_source_files_properties(Constants.qml
PROPERTIES
QT_QML_SINGLETON_TYPE true
......@@ -6,7 +7,8 @@ set_source_files_properties(Constants.qml
qt6_add_qml_module(CoffeeMachineImport
URI "CoffeeMachineImport"
VERSION 1.0
PLUGIN_TARGET CoffeeMachineImport
## PLUGIN_TARGET CoffeeMachineImport
NO_PLUGIN
QML_FILES
Constants.qml
RESOURCES
......
......@@ -29,6 +29,9 @@
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QtQml/qqmlextensionplugin.h>
//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