[fix] Added macOS frameworks

This commit is contained in:
Leroy.H.Y 2019-12-31 17:17:32 +08:00
parent ba4769581c
commit a9da9824f7
No known key found for this signature in database
GPG Key ID: 6AC1673B587DC37D

View File

@ -229,9 +229,16 @@ win32 {
}
macx {
# For Linux and macOS
message("Configuring for macOS specific environment")
LIBS += -framework Carbon -framework Cocoa
}
# Reuse unix for macx as well
unix {
# For Linux and macOS
message("Configuring for unix-like (macOS and linux) environment")
message("Configuring for unix-like environment")
# For gRPC and protobuf in linux and macOS
message(" --> Linking against gRPC and protobuf library.")
LIBS += -L/usr/local/lib -lgrpc++ -lprotobuf -lgrpc -lgpr