mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-23 14:10:45 +00:00
37 lines
1.2 KiB
Plaintext
37 lines
1.2 KiB
Plaintext
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__
|