2013-04-05 22:46:56 +02:00
|
|
|
#
|
2016-01-22 22:04:10 +01:00
|
|
|
# Qmake project for the LibrePilot GCS.
|
2013-04-05 22:46:56 +02:00
|
|
|
# Copyright (c) 2009-2013, The OpenPilot Team, http://www.openpilot.org
|
2016-01-22 22:04:10 +01:00
|
|
|
# Copyright (c) 2015-2016, The LibrePilot Team, http://www.librepilot.org
|
2013-04-05 22:46:56 +02:00
|
|
|
#
|
|
|
|
|
2013-10-26 13:37:13 +02:00
|
|
|
cache()
|
2013-11-13 11:04:57 +01:00
|
|
|
|
2015-01-02 22:23:32 +01:00
|
|
|
# check Qt version
|
2013-11-13 11:04:57 +01:00
|
|
|
QT_VERSION = $$[QT_VERSION]
|
|
|
|
QT_VERSION = $$split(QT_VERSION, ".")
|
|
|
|
QT_VER_MAJ = $$member(QT_VERSION, 0)
|
|
|
|
QT_VER_MIN = $$member(QT_VERSION, 1)
|
|
|
|
|
2015-01-06 10:28:43 +01:00
|
|
|
lessThan(QT_VER_MAJ, 5) | lessThan(QT_VER_MIN, 2) {
|
|
|
|
error(OpenPilot GCS requires Qt 5.2.0 or newer but Qt $$[QT_VERSION] was detected.)
|
2013-11-13 11:04:57 +01:00
|
|
|
}
|
|
|
|
|
2013-10-26 13:37:13 +02:00
|
|
|
macx {
|
|
|
|
# This ensures that code is compiled with the /usr/bin version of gcc instead
|
|
|
|
# of the gcc in XCode.app/Context/Development
|
|
|
|
QMAKE_CC = /usr/bin/gcc
|
|
|
|
QMAKE_CXX = /usr/bin/g++
|
|
|
|
QMAKE_LINK = /usr/bin/g++
|
2014-01-10 00:44:12 +01:00
|
|
|
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6
|
2013-10-26 13:37:13 +02:00
|
|
|
}
|
2013-04-05 22:46:56 +02:00
|
|
|
|
2015-07-16 22:32:56 +02:00
|
|
|
include(gcs.pri)
|
2013-04-05 22:46:56 +02:00
|
|
|
|
|
|
|
TEMPLATE = subdirs
|
|
|
|
CONFIG += ordered
|
|
|
|
|
|
|
|
DEFINES += USE_PATHPLANNER
|
|
|
|
|
2016-01-22 22:04:10 +01:00
|
|
|
SUBDIRS = src
|
2013-04-05 22:46:56 +02:00
|
|
|
|
2016-01-22 22:04:10 +01:00
|
|
|
equals(copyqt, 1) {
|
|
|
|
SUBDIRS += copydata
|
|
|
|
copydata.file = copydata.pro
|
2016-01-23 01:21:40 +01:00
|
|
|
win32 {
|
|
|
|
SUBDIRS += opengl
|
|
|
|
opengl.file = opengl.pro
|
|
|
|
}
|
2016-01-22 22:04:10 +01:00
|
|
|
}
|