You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.2 KiB
36 lines
1.2 KiB
INCLUDEPATH += $$PWD |
|
DEPENDPATH += $$PWD |
|
|
|
PUBLIC_HEADERS += $$PWD/qextserialport.h \ |
|
$$PWD/qextserialenumerator.h \ |
|
$$PWD/qextserialport_global.h |
|
|
|
HEADERS += $$PUBLIC_HEADERS \ |
|
$$PWD/qextserialport_p.h \ |
|
$$PWD/qextserialenumerator_p.h \ |
|
|
|
SOURCES += $$PWD/qextserialport.cpp \ |
|
$$PWD/qextserialenumerator.cpp |
|
unix { |
|
SOURCES += $$PWD/qextserialport_unix.cpp |
|
linux* { |
|
SOURCES += $$PWD/qextserialenumerator_linux.cpp |
|
} else:macx { |
|
SOURCES += $$PWD/qextserialenumerator_osx.cpp |
|
} else { |
|
SOURCES += $$PWD/qextserialenumerator_unix.cpp |
|
} |
|
} |
|
win32:SOURCES += $$PWD/qextserialport_win.cpp \ |
|
$$PWD/qextserialenumerator_win.cpp |
|
|
|
linux*{ |
|
!qesp_linux_udev:DEFINES += QESP_NO_UDEV |
|
qesp_linux_udev: LIBS += -ludev |
|
} |
|
|
|
macx:LIBS += -framework IOKit -framework CoreFoundation |
|
win32:LIBS += -lsetupapi -ladvapi32 -luser32 |
|
|
|
# moc doesn't detect Q_OS_LINUX correctly, so add this to make it work |
|
linux*:DEFINES += __linux__
|
|
|