1. 首页
  2. 编程语言
  3. C++ 
  4. QT串口通讯

QT串口通讯

上传者: 2018-12-27 22:49:54上传 RAR文件 249.83KB 热度 30次
串口通讯程序 PROJECT = qextserialport TEMPLATE = lib CONFIG += debug_and_release CONFIG += qt CONFIG += warn_on CONFIG += thread CONFIG += dll #CONFIG += staticlib QT -= gui OBJECTS_DIR = build/obj MOC_DIR = build/moc DEPENDDIR = . INCLUDEDIR = . HEADERS = qextserialbase.h \ qextserialport.h \ qextserialenumerator.h SOURCES = qextserialbase.cpp \ qextserialport.cpp \ qextserialenumerator.cpp unix:HEADERS += posix_qextserialport.h unix:SOURCES += posix_qextserialport.cpp unix:DEFINES += _TTY_POSIX_ win32:HEADERS += win_qextserialport.h win32:SOURCES += win_qextserialport.cpp win32:DEFINES += _TTY_WIN_ win32:LIBS += -lsetupapi DESTDIR = build #DESTDIR = examples/enumerator/debug #DESTDIR = examples/qespta/debug #DESTDIR = examples/event/debug CONFIG(debug, debug|release) { TARGET = qextserialportd } else { TARGET = qextserialport } unix:VERSION = 1.2.0 qextserialenumerator.h SOURCES = qextserialbase.cpp \ qextserialport.cpp \ qextserialenumerator.cpp unix:HEADERS += posix_qextserialport.h unix:SOURCES += posix_qextserialport.cpp unix:DEFINES += _TTY_POSIX_ win32:HEADERS += win_qextserialport.h win32:SOURCES += win_qextserialport.cpp win32:DEFINES += _TTY_WIN_ win32:LIBS += -lsetupapi DESTDIR = build #DESTDIR = examples/enumerator/debug #DESTDIR = examples/qespta/debug #DESTDIR = examples/event/debug CONFIG(debug, debug|release) { TARGET = qextserialportd } else { TARGET = qextserialport } unix:VERSION = 1.2.0
用户评论