Subversion Repositories Projects

Rev

Rev 801 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
674 KeyOz 1
# -------------------------------------------------
2
# Project created by QtCreator 2009-07-20T20:04:00
3
# -------------------------------------------------
750 KeyOz 4
include(../Global/Widget_Connection.pri)
908 - 5
 
6
# For Mac OS X, please define $QWT_HOME in your environment as path to QWT
7
 
674 KeyOz 8
QT += network
9
TARGET = QMK-Scope
10
TEMPLATE = app
908 - 11
 
12
TRANSLATIONS = $${TARGET}_en.ts \
13
               $${TARGET}_de.ts \
14
               $${TARGET}_fr.ts
15
 
16
win32 {
801 - 17
    include( C:\Qt\qwt-5.2.0\examples\examples.pri )
18
    QWT_ROOT = c:\qt\qwt-5.2.0
19
    include( $${QWT_ROOT}\qwtconfig.pri )
20
    SUFFIX_STR = $${RELEASE_SUFFIX}
21
    INCLUDEPATH += $${QWT_ROOT}/src
22
    DEPENDPATH += $${QWT_ROOT}/src
23
    QWTLIB = qwt$${SUFFIX_STR}
24
    contains(CONFIG, QwtDll)
25
     {
26
        DEFINES += QT_DLL \
27
            QWT_DLL
28
        QWTLIB = $${QWTLIB}$${VER_MAJ}
29
    }
30
    win32-msvc:LIBS += $${QWT_ROOT}/lib/$${QWTLIB}.lib
31
    win32-msvc.net:LIBS += $${QWT_ROOT}/lib/$${QWTLIB}.lib
32
    win32-msvc2005:LIBS += $${QWT_ROOT}/lib/$${QWTLIB}.lib
33
    win32-g++:LIBS += -L$${QWT_ROOT}/lib \
34
        -l$${QWTLIB}
35
}
908 - 36
 
674 KeyOz 37
DESTDIR = ../Binary
908 - 38
OBJECTS_DIR = ../Binary/.build/$${TARGET}
39
UI_DIR = ../Binary/.build/$${TARGET}
40
MOC_DIR = ../Binary/.build/$${TARGET}
41
RCC_DIR = ../Binary/.build/$${TARGET}
42
 
43
 
44
# Mac specific stuff
45
macx:{
46
#    LIBS    += /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
47
    ICON = ../Global/Images/Icons/$${TARGET}.icns
48
    QMAKE_POST_LINK = cp ../$${TARGET}/*.qm ../Binary/$${TARGET}.app/Contents/MacOS/.
674 KeyOz 49
}
908 - 50
 
51
# And other
52
!macx:{
53
    QMAKE_POST_LINK = cp ../$${TARGET}/*.qm ../Binary/.
54
}
55
 
801 - 56
Suse {
57
    LIBS += -lqwt
58
    INCLUDEPATH += $(HOME)/include \
59
        /usr/include/qwt
674 KeyOz 60
}
908 - 61
 
801 - 62
Debian {
63
    LIBS += -lqwt-qt4
64
    INCLUDEPATH += $(HOME)/include \
65
        /usr/include/qwt-qt4
674 KeyOz 66
}
908 - 67
 
801 - 68
Gentoo {
69
    LIBS += -lqwt
70
    INCLUDEPATH += $(HOME)/include \
71
        /usr/include/qwt5
674 KeyOz 72
}
908 - 73
 
801 - 74
OSX {
908 - 75
    LIBS += -L$(QWT_HOME)/lib -lqwt
76
    INCLUDEPATH += $(QWT_HOME)/include
674 KeyOz 77
}
908 - 78
 
79
#debug {
80
#    DEFINES += _BETA_
81
#   LIBS += -lqwt
82
#   INCLUDEPATH += $(HOME)/include \
83
#        /usr/include/qwt
84
#}
85
 
86
RESOURCES += $${TARGET}.qrc
674 KeyOz 87
SOURCES += main.cpp \
88
    Dialogs/dlg_Main.cpp \
801 - 89
    Classes/cSettings.cpp \
90
    Dialogs/wgt_Index.cpp
674 KeyOz 91
HEADERS += Defines.h \
92
    ../Global/Global.h \
93
    Dialogs/dlg_Main.h \
94
    Classes/cSettings.h \
801 - 95
    TypeDefs.h \
96
    Dialogs/wgt_Index.h
97
FORMS += Dialogs/dlg_Main.ui \
98
    Dialogs/wgt_Index.ui