Commit ce26ca91 authored by Heiko Becker's avatar Heiko Becker
Browse files

Fix build with -DWITH_SIMULATION=FALSE

simulation.qrc isn't added to the build when WITH_SIMULATION is
disabled and thus building errors out with "undefined reference to
`qInitResources_simulation()'".
parent 433c0dee
......@@ -53,7 +53,9 @@ public:
explicit SMARTModule(QObject *parent, const QVariantList &args)
: KDEDModule(parent)
{
#ifdef WITH_SIMULATION
Q_INIT_RESOURCE(simulation);
#endif
Q_UNUSED(args);
connect(&m_monitor, &SMARTMonitor::deviceAdded, this, [this](Device *device) {
dbusDeviceServer.serve(device);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment