TARGET = QtDennco
TEMPLATE = app
+DESTDIR = ../bin
-INCLUDEPATH += QtScript QtDennco platform/qt ../Thirdparty/serialport/include
+INCLUDEPATH += QtScript QtDennco platform/qt ../Thirdparty/qt/qserialdevice-qserialdevice/include
SOURCES += QtDennco/mainwindow.cpp \
QtDennco/main.cpp \
FORMS += QtDennco/mainwindow.ui
FORMS += QtDennco/portinfodialog.ui
-Debug:DEFINES+=DEBUG
-Debug{
- LIBS += -L"../Thirdparty/serialport/src/debug" -lSerialPort
- win32:QMAKE_POST_LINK = "copy ..\\Thirdparty\\serialport\\src\\debug\\SerialPort.dll debug"
- unix:QMAKE_POST_LINK = "cp ../Thirdparty/serialport/src/debug/SerialPort.so debug"
+CONFIG(debug,debug|release) {
+ DEFINES+=DEBUG
+ win32:LIBS += -L"../Thirdparty/qt/qserialdevice-qserialdevice/src/debug" -lSerialPort
+ unix:LIBS += -L"../Thirdparty/qt/qserialdevice-qserialdevice/src" -lSerialPort
+
+} else {
+ win32:LIBS += -L"../Thirdparty/qt/qserialdevice-qserialdevice/src/release" -lSerialPort
+ unix:LIBS += -L"../Thirdparty/qt/qserialdevice-qserialdevice/src" -lSerialPort
}
-Release{
- LIBS += -L"../Thirdparty/serialport/src/release" -lSerialPort
- win32:QMAKE_POST_LINK = "copy ..\\Thirdparty\\serialport\\src\\release\\SerialPort.dll release"
- unix:QMAKE_POST_LINK = "cp ../Thirdparty/serialport/src/release/SerialPort.so release"
+CONFIG(debug,debug|release) {
+ win32:QMAKE_POST_LINK = "copy ..\\Thirdparty\\qt\\qserialdevice-qserialdevice\\src\\debug\\SerialPort.dll ..\\bin"
+ unix:QMAKE_POST_LINK = "cp ../Thirdparty/qt/qserialdevice-qserialdevice/src/libSerialPort.so ../bin"
+
+} else {
+ win32:QMAKE_POST_LINK = "copy ..\\Thirdparty\\qt\\qserialdevice-qserialdevice\\src\\release\\SerialPort.dll ..\\bin"
+ unix:QMAKE_POST_LINK = "cp ../Thirdparty/qt/qserialdevice-qserialdevice/src/libSerialPort.so ../bin"
}
Please get following thirdparty files and put here.
- QSerialDevice 2.0
- Download QSerialDevice 2.0 from http://gitorious.org/qserialdevice/qserialdevice/trees/2.0 and deploy under this directory.
- Rename the top directory of the thirdparty file to serialport.
- The top directory for this thirdparty file will be "Thirdparty/serialport".
+ Download QSerialDevice 2.0 from http://gitorious.org/qserialdevice/qserialdevice/trees/2.0 and deploy under Thirdparty/qt directory.
+ The top directory for this thirdparty file will be "Thirdparty/qt/qserialdevice-qserialdevice".
MEMO:
If you develop on windows and use QtSDK with default configuration, you may encounter a build error