mavground.pri 3.6 KB
Newer Older
Hugo Vincent's avatar
Hugo Vincent committed
1 2 3 4
#-------------------------------------------------
#
# MAVGround - Micro Air Vehicle Groundstation
# 
5
# Please see our website at <http://qgroundcontrol.org>
Hugo Vincent's avatar
Hugo Vincent committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
#
# Original Author:
# Lorenz Meier <mavteam@student.ethz.ch>
#
# Contributing Authors (in alphabetical order):
# 
# (c) 2009 PIXHAWK Team
#
# This file is part of the mav groundstation project
# MAVGround 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.
# MAVGround 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 MAVGround. If not, see <http://www.gnu.org/licenses/>.
#
#-------------------------------------------------

28
QT       += network opengl svg xml phonon
Hugo Vincent's avatar
Hugo Vincent committed
29 30

TEMPLATE = app
31
TARGET = qgroundcontrol
Hugo Vincent's avatar
Hugo Vincent committed
32 33 34 35 36

BASEDIR = .
BUILDDIR = build
LANGUAGE = C++

pixhawk's avatar
pixhawk committed
37
CONFIG += debug_and_release console
Hugo Vincent's avatar
Hugo Vincent committed
38 39 40 41 42 43 44 45

OBJECTS_DIR = $$BUILDDIR/obj
MOC_DIR = $$BUILDDIR/moc
UI_HEADERS_DIR = src/ui/generated


# Add external libraries
INCLUDEPATH += $$BASEDIR/lib/flite/include \
46
               $$BASEDIR/lib/flite/lang
Hugo Vincent's avatar
Hugo Vincent committed
47 48 49 50 51 52 53 54 55 56 57

#$$BASEDIR/lib/qextserialport/include
#               $$BASEDIR/lib/openjaus/libjaus/include \
#               $$BASEDIR/lib/openjaus/libopenJaus/include

message(Qt version $$[QT_VERSION])



# MAC OS X
macx { 
58

59
    HARDWARE_PLATFORM = $$system(uname -a)
pixhawk's avatar
pixhawk committed
60 61 62 63 64
    contains( HARDWARE_PLATFORM, 9.8.0 ) {
        # x86 Mac OS X Leopard 10.5 and earlier
        CONFIG += x86 cocoa phonon
        message(Building for Mac OS X 32bit/Leopard 10.5 and earlier)
    } else {
65 66
        # x64 Mac OS X Snow Leopard 10.6 and later
        CONFIG += x86_64 cocoa
pixhawk's avatar
pixhawk committed
67
        CONFIG -= x86 phonon
68
        message(Building for Mac OS X 64bit/Snow Leopard 10.6 and later)
69
    }
Hugo Vincent's avatar
Hugo Vincent committed
70

Hugo Vincent's avatar
Hugo Vincent committed
71
    QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.5
Hugo Vincent's avatar
Hugo Vincent committed
72 73 74

    DESTDIR = $$BASEDIR/bin/mac
    INCLUDEPATH += -framework SDL \
75
        $$BASEDIR/../mavlink/src
Hugo Vincent's avatar
Hugo Vincent committed
76 77

    LIBS += -framework IOKit \
Hugo Vincent's avatar
Hugo Vincent committed
78 79 80
        -framework SDL \
        -framework CoreFoundation \
        -framework ApplicationServices \
Hugo Vincent's avatar
Hugo Vincent committed
81 82
        -lm

83 84
    # Enable function-profiling with the OS X saturn tool
    debug {
85 86
        QMAKE_CXXFLAGS += -finstrument-functions
        LIBS += -lSaturn
87
    }
Hugo Vincent's avatar
Hugo Vincent committed
88 89 90 91 92 93 94 95 96 97 98 99 100 101
    
    ICON = $$BASEDIR/images/icons/macx.icns
}

# GNU/Linux
linux-g++ { 
    
    debug {
        DESTDIR = $$BASEDIR
    }

    release {
        DESTDIR = $$BASEDIR
    }
102
    INCLUDEPATH += /usr/include
Hugo Vincent's avatar
Hugo Vincent committed
103

104
    HARDWARE_PLATFORM = $$system(uname -a)
Hugo Vincent's avatar
Hugo Vincent committed
105 106
    contains( HARDWARE_PLATFORM, x86_64 ) {
        # 64-bit Linux
107 108
        LIBS += \
            -L$$BASEDIR/lib/flite/linux64
109
        message(Building for GNU/Linux 64bit/x64)
Hugo Vincent's avatar
Hugo Vincent committed
110 111
    } else {
        # 32-bit Linux
112 113
        LIBS += \
           -L$$BASEDIR/lib/flite/linux32
114
        message(Building for GNU/Linux 32bit/i386)
115 116
    }
    LIBS += -lm \
Hugo Vincent's avatar
Hugo Vincent committed
117 118 119 120 121 122 123 124 125 126 127
        -lflite_cmu_us_awb \
        -lflite_cmu_us_rms \
        -lflite_cmu_us_slt \
        -lflite_usenglish \
        -lflite_cmulex \
        -lflite \
        -lSDL \
        -lSDLmain
}


Hugo Vincent's avatar
Hugo Vincent committed
128
# Windows (32bit/64bit)
Hugo Vincent's avatar
Hugo Vincent committed
129 130 131 132 133
win32 { 

    message(Building for Windows Platform (32/64bit))
    
    # Special settings for debug
Hugo Vincent's avatar
Hugo Vincent committed
134
    #CONFIG += CONSOLE
Hugo Vincent's avatar
Hugo Vincent committed
135 136 137
    LIBS += -L$$BASEDIR\lib\sdl\win32 \
        -lmingw32 -lSDLmain -lSDL -mwindows
    
138
    INCLUDEPATH += $$BASEDIR/lib/sdl/include
Hugo Vincent's avatar
Hugo Vincent committed
139 140 141 142 143 144 145 146 147 148 149

    debug {
        DESTDIR = $$BASEDIR/bin
    }

    release {
        DESTDIR = $$BASEDIR/bin
    }
        
}

150

151