Browse Source

change carmakerwork.pro for compile in win.

yuchuli 2 years ago
parent
commit
1e6a9a01e2
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/test/carmakerwork/carmakerwork.pro

+ 6 - 0
src/test/carmakerwork/carmakerwork.pro

@@ -3,6 +3,9 @@ QT -= gui
 CONFIG += c++11 console
 CONFIG -= app_bundle
 
+#DEFINES += QT_DEPRECATED_WARNINGS
+#DEFINES += PROTOBUF_USE_DLLS
+
 # The following define makes your compiler emit warnings if you use
 # any feature of Qt which as been marked deprecated (the exact warnings
 # depend on your compiler). Please consult the documentation of the
@@ -19,6 +22,9 @@ SOURCES += main.cpp \
     ../../include/msgtype/carmaker.pb.cc \
     carmakerwork.cpp
 
+
+win32: DEFINES +=  _WIN32_WINNT=0x0602
+
 INCLUDEPATH += $$PWD/../../../src/include/msgtype
 INCLUDEPATH += $$PWD/../carmakerservice