Fixed NetSend so it can be used in debug mode.
[qt/compvision.git] / compvision.pro
1 TEMPLATE = app\r
2 TARGET = compvision\r
3 DEPENDPATH += .\r
4 INCLUDEPATH += .\r
5 CONFIG += release\r
6 \r
7 # Base files\r
8 RESOURCES = icons/icons.qrc\r
9 \r
10 HEADERS += ImagePool.h   ImageThread.h   ImageSource.h  \r
11 SOURCES += ImagePool.cpp ImageThread.cpp ImageSource.cpp\r
12 \r
13 HEADERS += ImageProcessor.h   ImageViewer.h\r
14 SOURCES += ImageProcessor.cpp ImageViewer.cpp\r
15 \r
16 HEADERS += NetSend.h   NetReceive.h\r
17 SOURCES += NetSend.cpp NetReceive.cpp\r
18 \r
19 HEADERS += simplevision/vision.h\r
20 SOURCES += simplevision/vision.cpp\r
21 \r
22 # Qt Designer forms\r
23 FORMS   += MainWindow.ui  ColorPicker.ui  SourceDialog.ui  DestinationDialog.ui\r
24 HEADERS += MainWindow.h   ColorPicker.h   SourceDialog.h   DestinationDialog.h\r
25 SOURCES += MainWindow.cpp ColorPicker.cpp SourceDialog.cpp DestinationDialog.cpp\r
26 \r
27 # Include networking support\r
28 QT += network\r
29 \r
30 ###### Optional files #####\r
31 # OS-specific paths\r
32 win32 {\r
33         # Check for common OpenCV install locations\r
34         exists(C:/OpenCV) {\r
35                 OPENCVDIR = C:/OpenCV\r
36         } else {\r
37                 OPENCVDIR = "C:/Program Files/OpenCV"\r
38         }\r
39 \r
40         exists("C:/Program Files/uEye/Develop") {\r
41                 UEYEDIR = "C:/Program Files/uEye/Develop"\r
42         } else {\r
43                 UEYEDIR = "C:/Program Files/IDS/uEye/Develop"\r
44         }\r
45         \r
46         exists(./qextserialport) {\r
47                 QEXTSERIALDIR = ./qextserialport\r
48         } else {\r
49                 exists(C:/qextserialport) {\r
50                         QEXTSERIALDIR = C:/qextserialport\r
51                 } else {\r
52                         QEXTSERIALDIR = D:/qextserialport\r
53                 }\r
54         }\r
55 }\r
56 \r
57 win32:debug {\r
58         CONFIG += console\r
59 }\r
60 \r
61 linux-g++ {\r
62         OPENCVDIR = /bad/path\r
63         UEYEDIR = /bad/path\r
64         QEXTSERIALDIR = /bad/path\r
65 }\r
66 \r
67 # Check for OpenCV and uEye support\r
68 exists($$OPENCVDIR) {\r
69         DEFINES += USEOPENCV\r
70         INCLUDEPATH += $${OPENCVDIR}/cv/include $${OPENCVDIR}/cxcore/include $${OPENCVDIR}/otherlibs/highgui\r
71         LIBS += -L$${OPENCVDIR}/lib -lcv -lhighgui\r
72 \r
73         message("OpenCV libraries found in $${OPENCVDIR}")\r
74 \r
75         HEADERS += OpenCVImage.h\r
76         SOURCES += OpenCVImage.cpp\r
77 } else {\r
78         message("OpenCV libraries not found.")\r
79 }\r
80 \r
81 exists($$UEYEDIR) {\r
82         DEFINES += USEUEYE\r
83         INCLUDEPATH += $${UEYEDIR}/include\r
84         LIBS += -L$${UEYEDIR}/Lib -luEye_api\r
85         message("uEye libraries found in $${UEYEDIR}")\r
86 \r
87         HEADERS += UEyeImage.h\r
88         SOURCES += UEyeImage.cpp\r
89 } else {\r
90         message("uEye libraries not found.")\r
91 }\r
92 \r
93 exists($$QEXTSERIALDIR) {\r
94         message("QExtSerialPort libraries found in $${QEXTSERIALDIR}")\r
95         \r
96         DEFINES += USEQEXTSERIAL\r
97         FORMS   += qtcomm/SerialPort.ui\r
98         HEADERS += qtcomm/SerialPort.h   SerialReceive.h\r
99         SOURCES += qtcomm/SerialPort.cpp SerialReceive.cpp\r
100         \r
101         DEPENDPATH += $$QEXTSERIALDIR\r
102         INCLUDEPATH += $$QEXTSERIALDIR\r
103         LIBS += -L$${QEXTSERIALDIR}/build -lqextserialport\r
104 } else {\r
105         message("QExtSerialPort libraries not found.")\r
106 }\r
107 \r