only import boblight plugin if compiling with CONFIG+=boblight

This commit is contained in:
Michael Zanetti 2014-04-13 10:53:13 +02:00
parent 8d1c7f9c03
commit b69a640aa1
2 changed files with 4 additions and 0 deletions

View File

@ -29,7 +29,10 @@ Q_IMPORT_PLUGIN(DevicePluginConrad)
Q_IMPORT_PLUGIN(DevicePluginMock)
//Q_IMPORT_PLUGIN(DevicePluginWeatherground)
Q_IMPORT_PLUGIN(DevicePluginOpenweathermap)
#if USE_BOBLIGHT
Q_IMPORT_PLUGIN(DevicePluginBoblight)
#endif
int main(int argc, char *argv[])
{

View File

@ -26,4 +26,5 @@ LIBS += -L../plugins/deviceplugins/openweathermap -lguh_devicepluginopenweatherm
boblight {
LIBS += -L../plugins/deviceplugins/boblight -lguh_devicepluginboblight -L/usr/local/lib/ -lboblight
DEFINES += USE_BOBLIGHT
}