Add linker and compiler configuration for extern plugins

This commit is contained in:
Simon Stürz 2018-04-27 16:49:22 +02:00 committed by Michael Zanetti
parent 9992974049
commit 50b55d3727

View File

@ -33,6 +33,14 @@ LIBS += -lnymea
PLUGIN_PATH=/usr/lib/$$system('dpkg-architecture -q DEB_HOST_MULTIARCH')/nymea/plugins/
QMAKE_CXXFLAGS *= -Werror -std=c++11 -g
QMAKE_LFLAGS *= -std=c++11
# Check if ccache is enabled
ccache {
QMAKE_CXX = ccache g++
}
# Make the device plugin json file visible in the Qt Creator
OTHER_FILES+=deviceplugin"$$TARGET".json