qgroundcontrol.pro 20 KB
Newer Older
1
# -------------------------------------------------
2 3
# QGroundControl - Micro Air Vehicle Groundstation
# Please see our website at <http://qgroundcontrol.org>
4 5 6 7
# Maintainer:
# Lorenz Meier <lm@inf.ethz.ch>
# (c) 2009-2011 QGroundControl Developers
# This file is part of the open groundstation project
8 9 10 11 12 13 14 15 16 17
# QGroundControl is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# QGroundControl is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with QGroundControl. If not, see <http://www.gnu.org/licenses/>.
18
# -------------------------------------------------
19 20


21
# Qt configuration
22
CONFIG += qt \
23
    thread
24 25 26 27
QT += network \
    opengl \
    svg \
    xml \
pixhawk's avatar
pixhawk committed
28
    phonon \
lm's avatar
lm committed
29 30
    webkit \
    sql
31

32 33
TEMPLATE = app
TARGET = qgroundcontrol
34
BASEDIR = $${IN_PWD}
35
linux-g++|linux-g++-64{
36 37 38 39 40 41 42 43
    debug {
        TARGETDIR = $${OUT_PWD}/debug
        BUILDDIR = $${OUT_PWD}/build-debug
    }
    release {
        TARGETDIR = $${OUT_PWD}/release
        BUILDDIR = $${OUT_PWD}/build-release
    }
44 45 46 47
} else {
    TARGETDIR = $${OUT_PWD}
    BUILDDIR = $${OUT_PWD}/build
}
48
LANGUAGE = C++
49 50 51 52
OBJECTS_DIR = $${BUILDDIR}/obj
MOC_DIR = $${BUILDDIR}/moc
UI_DIR = $${BUILDDIR}/ui
RCC_DIR = $${BUILDDIR}/rcc
53
MAVLINK_CONF = ""
54
MAVLINKPATH = $$BASEDIR/mavlink/include/mavlink/v1.0
55
DEFINES += MAVLINK_NO_DATA
56

57
win32 {
58 59 60 61 62 63
    QMAKE_INCDIR_QT = $$(QTDIR)/include
    QMAKE_LIBDIR_QT = $$(QTDIR)/lib
    QMAKE_UIC = "$$(QTDIR)/bin/uic.exe"
    QMAKE_MOC = "$$(QTDIR)/bin/moc.exe"
    QMAKE_RCC = "$$(QTDIR)/bin/rcc.exe"
    QMAKE_QMAKE = "$$(QTDIR)/bin/qmake.exe"
64
}
65 66


67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91

#################################################################
# EXTERNAL LIBRARY CONFIGURATION

# Include NMEA parsing library (currently unused)
include(src/libs/nmea/nmea.pri)

# EIGEN matrix library (header-only)
INCLUDEPATH += src/libs/eigen

# OPMapControl library (from OpenPilot)
include(src/libs/utils/utils_external.pri)
include(src/libs/opmapcontrol/opmapcontrol_external.pri)
DEPENDPATH += \
    src/libs/utils \
    src/libs/utils/src \
    src/libs/opmapcontrol \
    src/libs/opmapcontrol/src \
    src/libs/opmapcontrol/src/mapwidget

INCLUDEPATH += \
    src/libs/utils \
    src/libs \
    src/libs/opmapcontrol

92 93 94 95
# If the user config file exists, it will be included.
# if the variable MAVLINK_CONF contains the name of an
# additional project, QGroundControl includes the support
# of custom MAVLink messages of this project
96
exists(user_config.pri) { 
97
    include(user_config.pri)
98 99 100
    message("----- USING CUSTOM USER QGROUNDCONTROL CONFIG FROM user_config.pri -----")
    message("Adding support for additional MAVLink messages for: " $$MAVLINK_CONF)
    message("------------------------------------------------------------------------")
101
}
102 103
INCLUDEPATH += $$MAVLINKPATH/common
INCLUDEPATH += $$MAVLINKPATH
104 105
contains(MAVLINK_CONF, pixhawk) { 
    # Remove the default set - it is included anyway
106
    INCLUDEPATH -= $$MAVLINKPATH/common
107

108
    # PIXHAWK SPECIAL MESSAGES
109
    INCLUDEPATH += $$MAVLINKPATH/pixhawk
110
    DEFINES += QGC_USE_PIXHAWK_MESSAGES
111
}
112 113
contains(MAVLINK_CONF, slugs) { 
    # Remove the default set - it is included anyway
114
    INCLUDEPATH -= $$MAVLINKPATH/common
115 116
    
    # SLUGS SPECIAL MESSAGES
117
    INCLUDEPATH += $$MAVLINKPATH/slugs
118
    DEFINES += QGC_USE_SLUGS_MESSAGES
119
}
120 121
contains(MAVLINK_CONF, ualberta) { 
    # Remove the default set - it is included anyway
122
    INCLUDEPATH -= $$MAVLINKPATH/common
123 124
    
    # UALBERTA SPECIAL MESSAGES
125
    INCLUDEPATH += $$MAVLINKPATH/ualberta
126
    DEFINES += QGC_USE_UALBERTA_MESSAGES
127
}
128
contains(MAVLINK_CONF, ardupilotmega) { 
129
    # Remove the default set - it is included anyway
130
    INCLUDEPATH -= $$MAVLINKPATH/common
pixhawk's avatar
pixhawk committed
131
    INCLUDEPATH -= $$BASEDIR/mavlink/include/v1.0/common
132
    
133
    # UALBERTA SPECIAL MESSAGES
134
    INCLUDEPATH += $$MAVLINKPATH/ardupilotmega
135
    DEFINES += QGC_USE_ARDUPILOTMEGA_MESSAGES
136
}
137 138
contains(MAVLINK_CONF, senseSoar) { 
    # Remove the default set - it is included anyway
139
    INCLUDEPATH -= $$MAVLINKPATH/common
140 141
    
    # SENSESOAR SPECIAL MESSAGES
142
    INCLUDEPATH += $$MAVLINKPATH/SenseSoar
143 144
    DEFINES += QGC_USE_SENSESOAR_MESSAGES
}
145

146

147
# Include general settings for QGroundControl
148 149
# necessary as last include to override any non-acceptable settings
# done by the plugins above
pixhawk's avatar
pixhawk committed
150
include(qgroundcontrol.pri)
pixhawk's avatar
pixhawk committed
151

152
# Include MAVLink generator
153
# has been deprecated
154 155 156 157 158 159 160 161 162 163 164 165
DEPENDPATH += \
    src/apps/mavlinkgen

INCLUDEPATH += \
    src/apps/mavlinkgen \
    src/apps/mavlinkgen/ui \
    src/apps/mavlinkgen/generator

include(src/apps/mavlinkgen/mavlinkgen.pri)



pixhawk's avatar
pixhawk committed
166 167 168
# Include QWT plotting library
include(src/lib/qwt/qwt.pri)
DEPENDPATH += . \
169 170 171
    plugins \
    thirdParty/qserialport/include \
    thirdParty/qserialport/include/QtSerialPort \
lm's avatar
lm committed
172 173
    thirdParty/qserialport \
    src/libs/qextserialport
174

pixhawk's avatar
pixhawk committed
175
INCLUDEPATH += . \
176 177
    thirdParty/qserialport/include \
    thirdParty/qserialport/include/QtSerialPort \
lm's avatar
lm committed
178 179
    thirdParty/qserialport/src \
    src/libs/qextserialport
180

181
# Include serial port library (QSerial)
182
include(qserialport.pri)
183

184
# Serial port detection (ripped-off from qextserialport library)
185
macx|macx-g++|macx-g++42::SOURCES += src/libs/qextserialport/qextserialenumerator_osx.cpp
lm's avatar
lm committed
186
linux-g++::SOURCES += src/libs/qextserialport/qextserialenumerator_unix.cpp
187
linux-g++-64::SOURCES += src/libs/qextserialport/qextserialenumerator_unix.cpp
lm's avatar
lm committed
188
win32::SOURCES += src/libs/qextserialport/qextserialenumerator_win.cpp
189
win32-msvc2008|win32-msvc2010::SOURCES += src/libs/qextserialport/qextserialenumerator_win.cpp
lm's avatar
lm committed
190

pixhawk's avatar
pixhawk committed
191 192 193 194 195 196 197
# Input
FORMS += src/ui/MainWindow.ui \
    src/ui/CommSettings.ui \
    src/ui/SerialSettings.ui \
    src/ui/UASControl.ui \
    src/ui/UASList.ui \
    src/ui/UASInfo.ui \
198
    src/ui/Linechart.ui \
pixhawk's avatar
pixhawk committed
199 200
    src/ui/UASView.ui \
    src/ui/ParameterInterface.ui \
201
    src/ui/WaypointList.ui \    
pixhawk's avatar
pixhawk committed
202 203 204 205 206
    src/ui/ObjectDetectionView.ui \
    src/ui/JoystickWidget.ui \
    src/ui/DebugConsole.ui \
    src/ui/HDDisplay.ui \
    src/ui/MAVLinkSettingsWidget.ui \
lm's avatar
lm committed
207
    src/ui/AudioOutputWidget.ui \
208
    src/ui/QGCSensorSettingsWidget.ui \
pixhawk's avatar
pixhawk committed
209 210
    src/ui/watchdog/WatchdogControl.ui \
    src/ui/watchdog/WatchdogProcessView.ui \
211 212
    src/ui/watchdog/WatchdogView.ui \
    src/ui/QGCFirmwareUpdate.ui \
213
    src/ui/QGCPxImuFirmwareUpdate.ui \
lm's avatar
lm committed
214
    src/ui/QGCDataPlot2D.ui \
pixhawk's avatar
pixhawk committed
215
    src/ui/QGCRemoteControlView.ui \
pixhawk's avatar
pixhawk committed
216 217
    src/ui/QMap3D.ui \
    src/ui/QGCWebView.ui \
218
    src/ui/map3D/QGCGoogleEarthView.ui \
219
    src/ui/SlugsDataSensorView.ui \
220
    src/ui/SlugsHilSim.ui \
221
    src/ui/SlugsPadCameraControl.ui \
222 223 224
    src/ui/uas/QGCUnconnectedInfoWidget.ui \
    src/ui/designer/QGCToolWidget.ui \
    src/ui/designer/QGCParamSlider.ui \
225
    src/ui/designer/QGCActionButton.ui \
226
    src/ui/designer/QGCCommandButton.ui \
227
    src/ui/QGCMAVLinkLogPlayer.ui \
228
    src/ui/QGCWaypointListMulti.ui \
229
    src/ui/mission/QGCCustomWaypointAction.ui \
lm's avatar
lm committed
230
    src/ui/QGCUDPLinkConfiguration.ui \
231
    src/ui/QGCSettingsWidget.ui \
Mariano Lizarraga's avatar
Mariano Lizarraga committed
232
    src/ui/UASControlParameters.ui \
233
    src/ui/mission/QGCMissionDoWidget.ui \
234
    src/ui/mission/QGCMissionConditionWidget.ui \
235
    src/ui/map/QGCMapTool.ui \
lm's avatar
lm committed
236
    src/ui/map/QGCMapToolBar.ui \
237
    src/ui/QGCMAVLinkInspector.ui \
238
    src/ui/WaypointViewOnlyView.ui \    
239
    src/ui/WaypointEditableView.ui \    
Lorenz Meier's avatar
Lorenz Meier committed
240 241 242 243 244
    src/ui/UnconnectedUASInfoWidget.ui \
    src/ui/mavlink/QGCMAVLinkMessageSender.ui \
    src/ui/firmwareupdate/QGCFirmwareUpdateWidget.ui \
    src/ui/QGCPluginHost.ui \
    src/ui/firmwareupdate/QGCPX4FirmwareUpdate.ui
pixhawk's avatar
pixhawk committed
245 246 247 248 249 250 251 252 253 254
INCLUDEPATH += src \
    src/ui \
    src/ui/linechart \
    src/ui/uas \
    src/ui/map \
    src/uas \
    src/comm \
    include/ui \
    src/input \
    src/lib/qmapcontrol \
255
    src/ui/mavlink \
256
    src/ui/param \
lm's avatar
lm committed
257
    src/ui/watchdog \
258 259
    src/ui/map3D \
    src/ui/designer
pixhawk's avatar
pixhawk committed
260
HEADERS += src/MG.h \
lm's avatar
lm committed
261
    src/QGCCore.h \
pixhawk's avatar
pixhawk committed
262 263 264 265 266 267 268 269 270
    src/uas/UASInterface.h \
    src/uas/UAS.h \
    src/uas/UASManager.h \
    src/comm/LinkManager.h \
    src/comm/LinkInterface.h \
    src/comm/SerialLinkInterface.h \
    src/comm/SerialLink.h \
    src/comm/ProtocolInterface.h \
    src/comm/MAVLinkProtocol.h \
lm's avatar
lm committed
271
    src/comm/QGCFlightGearLink.h \
pixhawk's avatar
pixhawk committed
272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289
    src/ui/CommConfigurationWindow.h \
    src/ui/SerialConfigurationWindow.h \
    src/ui/MainWindow.h \
    src/ui/uas/UASControlWidget.h \
    src/ui/uas/UASListWidget.h \
    src/ui/uas/UASInfoWidget.h \
    src/ui/HUD.h \
    src/ui/linechart/LinechartWidget.h \
    src/ui/linechart/LinechartPlot.h \
    src/ui/linechart/Scrollbar.h \
    src/ui/linechart/ScrollZoomer.h \
    src/configuration.h \
    src/ui/uas/UASView.h \
    src/ui/CameraView.h \
    src/comm/MAVLinkSimulationLink.h \
    src/comm/UDPLink.h \
    src/ui/ParameterInterface.h \
    src/ui/WaypointList.h \
290
    src/Waypoint.h \   
pixhawk's avatar
pixhawk committed
291 292 293 294 295 296 297 298
    src/ui/ObjectDetectionView.h \
    src/input/JoystickInput.h \
    src/ui/JoystickWidget.h \
    src/ui/DebugConsole.h \
    src/ui/HDDisplay.h \
    src/ui/MAVLinkSettingsWidget.h \
    src/ui/AudioOutputWidget.h \
    src/GAudioOutput.h \
299
    src/LogCompressor.h \
lm's avatar
lm committed
300
    src/ui/QGCParamWidget.h \
301
    src/ui/QGCSensorSettingsWidget.h \
302 303 304
    src/ui/linechart/Linecharts.h \
    src/uas/SlugsMAV.h \
    src/uas/PxQuadMAV.h \
305
    src/uas/ArduPilotMegaMAV.h \
oberion's avatar
oberion committed
306
    src/uas/senseSoarMAV.h \
pixhawk's avatar
pixhawk committed
307 308
    src/ui/watchdog/WatchdogControl.h \
    src/ui/watchdog/WatchdogProcessView.h \
309
    src/ui/watchdog/WatchdogView.h \
310
    src/uas/UASWaypointManager.h \
311
    src/ui/HSIDisplay.h \
312 313
    src/QGC.h \
    src/ui/QGCFirmwareUpdate.h \
314
    src/ui/QGCPxImuFirmwareUpdate.h \
315
    src/ui/QGCDataPlot2D.h \
Bryan Godbolt's avatar
Bryan Godbolt committed
316
    src/ui/linechart/IncrementalPlot.h \
pixhawk's avatar
pixhawk committed
317
    src/ui/QGCRemoteControlView.h \
318
    src/ui/RadioCalibration/RadioCalibrationData.h \
319 320 321
    src/ui/RadioCalibration/RadioCalibrationWindow.h \
    src/ui/RadioCalibration/AirfoilServoCalibrator.h \
    src/ui/RadioCalibration/SwitchCalibrator.h \
322
    src/ui/RadioCalibration/CurveCalibrator.h \
Bryan Godbolt's avatar
Bryan Godbolt committed
323
    src/ui/RadioCalibration/AbstractCalibrator.h \
pixhawk's avatar
pixhawk committed
324 325
    src/comm/QGCMAVLink.h \
    src/ui/QGCWebView.h \
326
    src/ui/map3D/QGCWebPage.h \
327
    src/ui/SlugsDataSensorView.h \
328
    src/ui/SlugsHilSim.h \
pixhawk's avatar
pixhawk committed
329
    src/ui/SlugsPadCameraControl.h \
pixhawk's avatar
pixhawk committed
330
    src/ui/QGCMainWindowAPConfigurator.h \
331
    src/comm/MAVLinkSwarmSimulationLink.h \
332 333 334
    src/ui/uas/QGCUnconnectedInfoWidget.h \
    src/ui/designer/QGCToolWidget.h \
    src/ui/designer/QGCParamSlider.h \
335
    src/ui/designer/QGCCommandButton.h \
336
    src/ui/designer/QGCToolWidgetItem.h \
337 338
    src/ui/QGCMAVLinkLogPlayer.h \
    src/comm/MAVLinkSimulationWaypointPlanner.h \
339
    src/comm/MAVLinkSimulationMAV.h \
340
    src/uas/QGCMAVLinkUASFactory.h \
341
    src/ui/QGCWaypointListMulti.h \
lm's avatar
lm committed
342
    src/ui/QGCUDPLinkConfiguration.h \
343
    src/ui/QGCSettingsWidget.h \
Mariano Lizarraga's avatar
Mariano Lizarraga committed
344
    src/ui/uas/UASControlParameters.h \
345 346
    src/ui/mission/QGCMissionDoWidget.h \
    src/ui/mission/QGCMissionConditionWidget.h \
lm's avatar
lm committed
347
    src/uas/QGCUASParamManager.h \
348 349
    src/ui/map/QGCMapWidget.h \
    src/ui/map/MAV2DIcon.h \
350
    src/ui/map/Waypoint2DIcon.h \
351
    src/ui/map/QGCMapTool.h \
lm's avatar
lm committed
352
    src/ui/map/QGCMapToolBar.h \
LM's avatar
LM committed
353
    src/libs/qextserialport/qextserialenumerator.h \
354
    src/QGCGeo.h \
lm's avatar
lm committed
355
    src/ui/QGCToolBar.h \
lm's avatar
lm committed
356
    src/ui/QGCMAVLinkInspector.h \
357
    src/ui/MAVLinkDecoder.h \
358
    src/ui/WaypointViewOnlyView.h \
359
    src/ui/WaypointViewOnlyView.h \
360
    src/ui/WaypointEditableView.h \    
361
    src/ui/UnconnectedUASInfoWidget.h \
Lorenz Meier's avatar
Lorenz Meier committed
362 363 364 365
    src/ui/QGCRGBDView.h \
    src/ui/mavlink/QGCMAVLinkMessageSender.h \
    src/ui/firmwareupdate/QGCFirmwareUpdateWidget.h \
    src/ui/QGCPluginHost.h \
366
    src/ui/firmwareupdate/QGCPX4FirmwareUpdate.h
367

368
# Google Earth is only supported on Mac OS and Windows with Visual Studio Compiler
369
macx|macx-g++|macx-g++42|win32-msvc2008|win32-msvc2010::HEADERS += src/ui/map3D/QGCGoogleEarthView.h
370 371 372 373
contains(DEPENDENCIES_PRESENT, osg) { 
    message("Including headers for OpenSceneGraph")
    
    # Enable only if OpenSceneGraph is available
374 375 376 377 378 379 380 381
    HEADERS += src/ui/map3D/gpl.h \
        src/ui/map3D/CameraParams.h \
        src/ui/map3D/ViewParamWidget.h \
        src/ui/map3D/SystemContainer.h \
        src/ui/map3D/SystemViewParams.h \
        src/ui/map3D/GlobalViewParams.h \
        src/ui/map3D/SystemGroupNode.h \
        src/ui/map3D/Q3DWidget.h \
382 383
        src/ui/map3D/GCManipulator.h \
        src/ui/map3D/ImageWindowGeode.h \
384 385
        src/ui/map3D/PixhawkCheetahGeode.h \
        src/ui/map3D/Pixhawk3DWidget.h \
386 387 388 389 390
        src/ui/map3D/Q3DWidgetFactory.h \
        src/ui/map3D/WebImageCache.h \
        src/ui/map3D/WebImage.h \
        src/ui/map3D/TextureCache.h \
        src/ui/map3D/Texture.h \
391
        src/ui/map3D/Imagery.h \
392
        src/ui/map3D/HUDScaleGeode.h \
393
        src/ui/map3D/WaypointGroupNode.h \
394 395
        src/ui/map3D/TerrainParamDialog.h \
        src/ui/map3D/ImageryParamDialog.h
396
}
397 398 399 400
contains(DEPENDENCIES_PRESENT, protobuf):contains(MAVLINK_CONF, pixhawk) {
    message("Including headers for Protocol Buffers")

    # Enable only if protobuf is available
pixhawk's avatar
pixhawk committed
401
    HEADERS += mavlink/include/v1.0/pixhawk/pixhawk.pb.h \
402 403
        src/ui/map3D/ObstacleGroupNode.h \
        src/ui/map3D/GLOverlayGeode.h
404
}
405 406 407 408 409
contains(DEPENDENCIES_PRESENT, libfreenect) { 
    message("Including headers for libfreenect")
    
    # Enable only if libfreenect is available
    HEADERS += src/input/Freenect.h
410
}
pixhawk's avatar
pixhawk committed
411
SOURCES += src/main.cc \
lm's avatar
lm committed
412
    src/QGCCore.cc \
pixhawk's avatar
pixhawk committed
413 414 415
    src/uas/UASManager.cc \
    src/uas/UAS.cc \
    src/comm/LinkManager.cc \
416
    src/comm/LinkInterface.cpp \
pixhawk's avatar
pixhawk committed
417 418
    src/comm/SerialLink.cc \
    src/comm/MAVLinkProtocol.cc \
lm's avatar
lm committed
419
    src/comm/QGCFlightGearLink.cc \
pixhawk's avatar
pixhawk committed
420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445
    src/ui/CommConfigurationWindow.cc \
    src/ui/SerialConfigurationWindow.cc \
    src/ui/MainWindow.cc \
    src/ui/uas/UASControlWidget.cc \
    src/ui/uas/UASListWidget.cc \
    src/ui/uas/UASInfoWidget.cc \
    src/ui/HUD.cc \
    src/ui/linechart/LinechartWidget.cc \
    src/ui/linechart/LinechartPlot.cc \
    src/ui/linechart/Scrollbar.cc \
    src/ui/linechart/ScrollZoomer.cc \
    src/ui/uas/UASView.cc \
    src/ui/CameraView.cc \
    src/comm/MAVLinkSimulationLink.cc \
    src/comm/UDPLink.cc \
    src/ui/ParameterInterface.cc \
    src/ui/WaypointList.cc \
    src/Waypoint.cc \
    src/ui/ObjectDetectionView.cc \
    src/input/JoystickInput.cc \
    src/ui/JoystickWidget.cc \
    src/ui/DebugConsole.cc \
    src/ui/HDDisplay.cc \
    src/ui/MAVLinkSettingsWidget.cc \
    src/ui/AudioOutputWidget.cc \
    src/GAudioOutput.cc \
446
    src/LogCompressor.cc \
lm's avatar
lm committed
447
    src/ui/QGCParamWidget.cc \
448
    src/ui/QGCSensorSettingsWidget.cc \
449 450 451
    src/ui/linechart/Linecharts.cc \
    src/uas/SlugsMAV.cc \
    src/uas/PxQuadMAV.cc \
452
    src/uas/ArduPilotMegaMAV.cc \
oberion's avatar
oberion committed
453
    src/uas/senseSoarMAV.cpp \
pixhawk's avatar
pixhawk committed
454 455
    src/ui/watchdog/WatchdogControl.cc \
    src/ui/watchdog/WatchdogProcessView.cc \
456
    src/ui/watchdog/WatchdogView.cc \
457
    src/uas/UASWaypointManager.cc \
pixhawk's avatar
pixhawk committed
458
    src/ui/HSIDisplay.cc \
459 460
    src/QGC.cc \
    src/ui/QGCFirmwareUpdate.cc \
461
    src/ui/QGCPxImuFirmwareUpdate.cc \
462
    src/ui/QGCDataPlot2D.cc \
463
    src/ui/linechart/IncrementalPlot.cc \
pixhawk's avatar
pixhawk committed
464
    src/ui/QGCRemoteControlView.cc \
465 466 467
    src/ui/RadioCalibration/RadioCalibrationWindow.cc \
    src/ui/RadioCalibration/AirfoilServoCalibrator.cc \
    src/ui/RadioCalibration/SwitchCalibrator.cc \
468
    src/ui/RadioCalibration/CurveCalibrator.cc \
469
    src/ui/RadioCalibration/AbstractCalibrator.cc \
pixhawk's avatar
pixhawk committed
470 471
    src/ui/RadioCalibration/RadioCalibrationData.cc \
    src/ui/QGCWebView.cc \
472 473 474
    src/ui/map3D/QGCWebPage.cc \
    src/ui/SlugsDataSensorView.cc \
    src/ui/SlugsHilSim.cc \
pixhawk's avatar
pixhawk committed
475
    src/ui/SlugsPadCameraControl.cpp \
pixhawk's avatar
pixhawk committed
476
    src/ui/QGCMainWindowAPConfigurator.cc \
477
    src/comm/MAVLinkSwarmSimulationLink.cc \
478 479 480
    src/ui/uas/QGCUnconnectedInfoWidget.cc \
    src/ui/designer/QGCToolWidget.cc \
    src/ui/designer/QGCParamSlider.cc \
481
    src/ui/designer/QGCCommandButton.cc \
482
    src/ui/designer/QGCToolWidgetItem.cc \
483 484
    src/ui/QGCMAVLinkLogPlayer.cc \
    src/comm/MAVLinkSimulationWaypointPlanner.cc \
485 486
    src/comm/MAVLinkSimulationMAV.cc \
    src/uas/QGCMAVLinkUASFactory.cc \
487
    src/ui/QGCWaypointListMulti.cc \
lm's avatar
lm committed
488
    src/ui/QGCUDPLinkConfiguration.cc \
489
    src/ui/QGCSettingsWidget.cc \
Mariano Lizarraga's avatar
Mariano Lizarraga committed
490
    src/ui/uas/UASControlParameters.cpp \
491 492
    src/ui/mission/QGCMissionDoWidget.cc \
    src/ui/mission/QGCMissionConditionWidget.cc \
lm's avatar
lm committed
493
    src/uas/QGCUASParamManager.cc \
494 495
    src/ui/map/QGCMapWidget.cc \
    src/ui/map/MAV2DIcon.cc \
496
    src/ui/map/Waypoint2DIcon.cc \
497
    src/ui/map/QGCMapTool.cc \
498
    src/ui/map/QGCMapToolBar.cc \
lm's avatar
lm committed
499
    src/ui/QGCToolBar.cc \
lm's avatar
lm committed
500
    src/ui/QGCMAVLinkInspector.cc \
501
    src/ui/MAVLinkDecoder.cc \
502
    src/ui/WaypointViewOnlyView.cc \
503
    src/ui/WaypointEditableView.cc \
504
    src/ui/UnconnectedUASInfoWidget.cc \
Lorenz Meier's avatar
Lorenz Meier committed
505 506 507 508
    src/ui/QGCRGBDView.cc \
    src/ui/mavlink/QGCMAVLinkMessageSender.cc \
    src/ui/firmwareupdate/QGCFirmwareUpdateWidget.cc \
    src/ui/QGCPluginHost.cc \
509
    src/ui/firmwareupdate/QGCPX4FirmwareUpdate.cc
510 511

# Enable Google Earth only on Mac OS and Windows with Visual Studio compiler
512
macx|macx-g++|macx-g++42|win32-msvc2008|win32-msvc2010::SOURCES += src/ui/map3D/QGCGoogleEarthView.cc
513 514

# Enable OSG only if it has been found
515
contains(DEPENDENCIES_PRESENT, osg) { 
lm's avatar
lm committed
516
    message("Including sources for OpenSceneGraph")
517 518
    
    # Enable only if OpenSceneGraph is available
519 520 521 522 523 524 525 526
    SOURCES += src/ui/map3D/gpl.cc \
        src/ui/map3D/CameraParams.cc \
        src/ui/map3D/ViewParamWidget.cc \
        src/ui/map3D/SystemContainer.cc \
        src/ui/map3D/SystemViewParams.cc \
        src/ui/map3D/GlobalViewParams.cc \
        src/ui/map3D/SystemGroupNode.cc \
        src/ui/map3D/Q3DWidget.cc \
527 528
        src/ui/map3D/ImageWindowGeode.cc \
        src/ui/map3D/GCManipulator.cc \
529 530
        src/ui/map3D/PixhawkCheetahGeode.cc \
        src/ui/map3D/Pixhawk3DWidget.cc \
531 532 533 534 535
        src/ui/map3D/Q3DWidgetFactory.cc \
        src/ui/map3D/WebImageCache.cc \
        src/ui/map3D/WebImage.cc \
        src/ui/map3D/TextureCache.cc \
        src/ui/map3D/Texture.cc \
536
        src/ui/map3D/Imagery.cc \
537
        src/ui/map3D/HUDScaleGeode.cc \
538
        src/ui/map3D/WaypointGroupNode.cc \
539 540
        src/ui/map3D/TerrainParamDialog.cc \
        src/ui/map3D/ImageryParamDialog.cc
541

542 543 544 545 546 547
    contains(DEPENDENCIES_PRESENT, osgearth) { 
        message("Including sources for osgEarth")
        
        # Enable only if OpenSceneGraph is available
        SOURCES += src/ui/map3D/QMap3D.cc
    }
548
}
549 550 551 552
contains(DEPENDENCIES_PRESENT, protobuf):contains(MAVLINK_CONF, pixhawk) {
    message("Including sources for Protocol Buffers")

    # Enable only if protobuf is available
553
    SOURCES += mavlink/share/mavlink/src/v1.0/pixhawk/pixhawk.pb.cc \
554 555
        src/ui/map3D/ObstacleGroupNode.cc \
        src/ui/map3D/GLOverlayGeode.cc
556
}
557
contains(DEPENDENCIES_PRESENT, libfreenect) { 
lm's avatar
lm committed
558
    message("Including sources for libfreenect")
559
    
560 561
    # Enable only if libfreenect is available
    SOURCES += src/input/Freenect.cc
562
}
563 564 565

# Add icons and other resources
RESOURCES += qgroundcontrol.qrc
566 567

# Include RT-LAB Library
568
win32:exists(src/lib/opalrt/OpalApi.h):exists(C:/OPAL-RT/RT-LAB7.2.4/Common/bin) { 
569
    message("Building support for Opal-RT")
570
    LIBS += -LC:/OPAL-RT/RT-LAB7.2.4/Common/bin \
Bryan Godbolt's avatar
Bryan Godbolt committed
571
        -lOpalApi
572
    INCLUDEPATH += src/lib/opalrt
573 574
    HEADERS += src/comm/OpalRT.h \
        src/comm/OpalLink.h \
575
        src/comm/Parameter.h \
576
        src/comm/QGCParamID.h \
577 578
        src/comm/ParameterList.h \
        src/ui/OpalLinkConfigurationWindow.h
579 580 581 582
    SOURCES += src/comm/OpalRT.cc \
        src/comm/OpalLink.cc \
        src/comm/Parameter.cc \
        src/comm/QGCParamID.cc \
583 584 585
        src/comm/ParameterList.cc \
        src/ui/OpalLinkConfigurationWindow.cc
    FORMS += src/ui/OpalLinkSettings.ui
586
    DEFINES += OPAL_RT
587
}
588
TRANSLATIONS += es-MX.ts \
589
    en-US.ts
Franz's avatar
Franz committed
590 591 592

# xbee support
# libxbee only supported by linux and windows systems
593
win32-msvc2008|win32-msvc2010|linux {
oberion's avatar
oberion committed
594
    HEADERS += src/comm/XbeeLinkInterface.h \
595 596 597 598
        src/comm/XbeeLink.h \
        src/comm/HexSpinBox.h \
        src/ui/XbeeConfigurationWindow.h \
        src/comm/CallConv.h
oberion's avatar
oberion committed
599
    SOURCES += src/comm/XbeeLink.cpp \
600 601
        src/comm/HexSpinBox.cpp \
        src/ui/XbeeConfigurationWindow.cpp
oberion's avatar
oberion committed
602 603
    DEFINES += XBEELINK
    INCLUDEPATH += thirdParty/libxbee
604
# TO DO: build library when it does not exist already
oberion's avatar
oberion committed
605
    LIBS += -LthirdParty/libxbee/lib \
606
        -llibxbee
607
}