Use pkg-config to find libusb and protobuf (Trezor dependencies)

This commit is contained in:
Pavol Rusnak
2019-04-10 22:10:32 +02:00
parent d2c47606ca
commit 34fdfcb458

View File

@@ -10,6 +10,12 @@ QT += qml quick widgets
WALLET_ROOT=$$PWD/monero WALLET_ROOT=$$PWD/monero
CONFIG += c++11 link_pkgconfig CONFIG += c++11 link_pkgconfig
packagesExist(libusb-1.0) {
PKGCONFIG += libusb-1.0
}
packagesExist(protobuf) {
PKGCONFIG += protobuf
}
packagesExist(hidapi-libusb) { packagesExist(hidapi-libusb) {
PKGCONFIG += hidapi-libusb PKGCONFIG += hidapi-libusb
} }