TEMPLATE = lib
TARGET = OPMapGadget

QT += widgets xml

PATHPLANNER {
    DEFINES += USE_PATHPLANNER
}

include(../../plugin.pri)
include(../../plugins/coreplugin/coreplugin.pri)
include(../../libs/opmapcontrol/opmapcontrol.pri)
include(../../plugins/uavobjects/uavobjects.pri)
include(../../plugins/uavobjectutil/uavobjectutil.pri)
include(../../plugins/uavtalk/uavtalk.pri)
include(../../libs/utils/utils.pri)

HEADERS += \
    opmapplugin.h \
    opmapgadgetoptionspage.h \
    opmapgadgetfactory.h \
    opmapgadgetconfiguration.h \
    opmapgadget.h \
    opmapgadgetwidget.h \
    opmap_edit_waypoint_dialog.h \
    opmap_zoom_slider_widget.h \
    opmap_statusbar_widget.h \
    flightdatamodel.h \
    modelmapproxy.h \
    widgetdelegates.h \
    pathplanner.h \
    modeluavoproxy.h \
    homeeditor.h

SOURCES += \
    opmapplugin.cpp \
    opmapgadgetwidget.cpp \
    opmapgadgetoptionspage.cpp \
    opmapgadgetfactory.cpp \
    opmapgadgetconfiguration.cpp \
    opmapgadget.cpp \
    opmap_edit_waypoint_dialog.cpp \
    opmap_zoom_slider_widget.cpp \
    opmap_statusbar_widget.cpp \
    flightdatamodel.cpp \
    modelmapproxy.cpp \
    widgetdelegates.cpp \
    pathplanner.cpp \
    modeluavoproxy.cpp \
    homeeditor.cpp

OTHER_FILES += OPMapGadget.pluginspec

FORMS += \
    opmapgadgetoptionspage.ui \
    opmap_widget.ui \
    opmap_edit_waypoint_dialog.ui \
    opmap_zoom_slider_widget.ui \
    opmap_statusbar_widget.ui \
    opmap_overlay_widget.ui \
    pathplanner.ui \
    homeeditor.ui

RESOURCES += opmap.qrc
