#message($$QMAKE_HOST.version_string) ##if 16.04, compile protobuf 3.13 and make install. and use static lib. if(contains(DEFINES,SYSTEM_UBUNTU1604)){ unix:LIBS += -L/home/yuchuli/soft/protobuf/cmake/build message("ubuntu 16.04") } unix:LIBS += -lprotobuf win32:INCLUDEPATH += $$PWD/../thirdpartylib/protobuf/src win32:LIBS += -L$$PWD/../thirdpartylib/protobuf/lib -lprotobuf