Fixed the display problem related to resizing the windows on mac.
[mldemos:auto-amcs-auto-amcs-mldemos.git] / MLDemos_variables.pri
1 ##############################
2 #                            #
3 #     MLDemos Variables      #
4 #                            #
5 ##############################
6
7 MLDEMOS = $${MLPATH}/MLDemos
8 win32{
9         MLBUILD = C:/tmp/MLDemos/$$NAME
10     CONFIG += WIN32
11 }else{
12     MLBUILD = /tmp/MLDemos/$$NAME
13 }
14
15 mainApp{
16 }else{
17         TARGET = $$qtLibraryTarget($$NAME)
18         CONFIG(debug, debug|release):DESTDIR = "$$MLPATH/pluginsDebug"
19         CONFIG(release, debug|release):DESTDIR = "$$MLPATH/plugins"
20 }
21 CONFIG(debug, debug|release){
22         DEFINES += DEBUG
23         message("debug mode")
24 }else{
25         message("release mode")
26 }
27 macx:DEFINES += MACX
28 win32:DEFINES += WIN32
29 win32{
30         CONFIG(Debug, Debug|Release){
31                 MOC_DIR = $${MLBUILD}/Debug
32                 UI_DIR = $${MLBUILD}/Debug
33                 RCC_DIR = $${MLBUILD}/Debug
34                 OBJECTS_DIR = $${MLBUILD}/Debug
35         }else{
36                 MOC_DIR = $${MLBUILD}/Release
37                 UI_DIR = $${MLBUILD}/Release
38                 RCC_DIR = $${MLBUILD}/Release
39                 OBJECTS_DIR = $${MLBUILD}/Release
40         }
41 }else{
42         MOC_DIR = $${MLBUILD}/build
43         UI_DIR = $${MLBUILD}/build
44         RCC_DIR = $${MLBUILD}/build
45         OBJECTS_DIR = $${MLBUILD}/build
46 }
47 DEPENDPATH += . \
48                 ..
49 win32{
50 INCLUDEPATH += . \
51         "C:/Program Files/OpenCV2.0/include/"
52 LIBS += -L"C:/Progra~1/OpenCV2.0/lib/"
53 LIBS += -lcv200 \
54         -lcxcore200 \
55         -lcvaux200 \
56         -lhighgui200 \
57         -lml200
58 }else{
59 INCLUDEPATH += . \
60         /usr/include/qt4/ \
61         /usr/include/qt4/QtCore/ \
62         /usr/include/qt4/QtGui/ \
63         /usr/include/qt4/QtOpenGL \
64         /usr/include/opencv/ \
65         /usr/local/include/opencv/
66 LIBS += -L/usr/local/lib
67 LIBS += -lcv \
68         -lcxcore \
69         -lcvaux \
70         -lhighgui \
71         -lml
72 }
73 INCLUDEPATH += $$MLDEMOS
74
75 ################################
76 # Turn the bloody warnings off #
77 ################################
78 macx|unix {
79         QMAKE_CXXFLAGS_WARN_ON = ""
80         QMAKE_CXXFLAGS += -Wno-all
81         QMAKE_CXXFLAGS += -Wno-endif-labels
82         QMAKE_CXXFLAGS += -Wno-unused-variable
83         QMAKE_CXXFLAGS += -Wno-unused-parameter
84         QMAKE_CXXFLAGS += -Wno-switch
85         QMAKE_CXXFLAGS += -Wtrigraphs
86         QMAKE_CXXFLAGS += -Wreturn-type
87         #QMAKE_CXXFLAGS += -Wnon-virtual-dtor
88         QMAKE_CXXFLAGS += -Woverloaded-virtual
89         #QMAKE_CXXFLAGS += -Wunused-variable
90         #QMAKE_CXXFLAGS += -Wunused-value
91         QMAKE_CXXFLAGS += -Wunknown-pragmas
92         QMAKE_CXXFLAGS += -Wno-shadow
93         QMAKE_CXXFLAGS += -Wno-deprecated-declarations
94         QMAKE_CXXFLAGS += -Wno-missing-braces
95 }