VS2010项目文件包含目录的设置技巧

2014/06/13 11:08
阅读数 158

Qt VS Add-in default project template   

Hi fellows!

Does anyone know where to modify the Visual Studio add-in default project templates. I’ve noticed a couples of things that tend to be annoying in the long run.

By converting a .pro project file to Visual Studio, for Debug configuration, C/C++, Optimization is set to Maximize Speed (/O2). Well, the effect of that is that you just cannot debug your source or view the variables’ content. You can sometimes step but that’s it. The correct setting would be Disabled (/Od) for Debug builds.

Also, for every and each project we need to add the QT include directories to get the Intellisense working:
$(QTDIR)\include;
$(QTDIR)\include\ActiveQt;
$(QTDIR)\include\Qt;
$(QTDIR)\include\Qt3Support;
$(QTDIR)\include\QtCore;
$(QTDIR)\include\QtDBus;
$(QTDIR)\include\QtDeclarative;
$(QTDIR)\include\QtDesigner;
$(QTDIR)\include\QtGui;
$(QTDIR)\include\QtHelp;
$(QTDIR)\include\QtMultimedia;
$(QTDIR)\include\QtNetwork;
$(QTDIR)\include\QtOpenGL;
$(QTDIR)\include\QtOpenVG;
$(QTDIR)\include\QtScript;
$(QTDIR)\include\QtScriptTools;
$(QTDIR)\include\QtSql;
$(QTDIR)\include\QtSvg;
$(QTDIR)\include\QtTest;
$(QTDIR)\include\QtUiTools;
$(QTDIR)\include\QtWebKit;
$(QTDIR)\include\QtXml;
$(QTDIR)\include\QtXmlPatterns;
$(QTDIR)\mkspecs\win32-msvc2010;

It would be nice to be able to customize the project template to have these as default settings and save some time.

Any hints?

Cheers,
-Damien


展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部