build: find zbar header on macOS

This commit is contained in:
selsta 2020-04-16 03:13:07 +02:00
parent 8e4124f06a
commit fb7470a2a6
No known key found for this signature in database
GPG key ID: 2EA0A99A8B07AE5E

View file

@ -231,6 +231,14 @@ CONFIG(WITH_SCANNER) {
LIBS += -lzbarjni -liconv
} else {
LIBS += -lzbar
macx {
ZBAR_DIR = $$system(brew --prefix zbar, lines, EXIT_CODE)
equals(EXIT_CODE, 0) {
INCLUDEPATH += $$ZBAR_DIR/include
} else {
INCLUDEPATH += /usr/local/include
}
}
}
} else {
message("Skipping camera scanner because of Incompatible Qt Version !")