3

I have a Qt project (.pro) and I can successfully open it in VS2010 using Qt Visual Studio Addin. It works but it makes a huge mess in my source directory. Is it possible to configure Addin, so it will generate VS project files (*.sln, *.sdf, *.vcxproj, *.vcxproj.filters, *.vcxproj.user, debug/*, release/*) in separate "build" directory?

user2449761
  • 1,169
  • 13
  • 25
  • You are not using VCS to clean up easily? – László Papp Apr 09 '14 at 20:01
  • Version Control System. – László Papp Apr 11 '14 at 07:29
  • I don't want my VCS to delete *.sln, *.sdf, *.vcxproj... maybe debug/*, release/* – user2449761 Apr 14 '14 at 09:17
  • That is fine, that is what .gitignore is for. ;-) – László Papp Apr 14 '14 at 09:24
  • thanks for the workaround. Anyway ignoring the problem is not solution for me :D – user2449761 Apr 14 '14 at 10:56
  • I would not call it a workaround or ignoring the problem, but as you feel. Why cannot you just do [this](http://stackoverflow.com/questions/7959001/change-destination-build-directory-in-visual-studio) or [this](http://stackoverflow.com/a/5554269/2682142)? – László Papp Apr 14 '14 at 11:02
  • .gitignore is completely ignoring the stated problem. The files may not be in VCS but they're still polluting my workspace. Shadow build is the One True Way™. I want to be able to have multiple build trees targeting the same source tree but using different builds of Qt, for example. – Oktalist Jul 27 '16 at 17:02

1 Answers1

0

It is stupid simple with Qt5.

mkdir build
cd build
qmake -r -tp vc ../my-project/MyProject.pro

Then you will get the generated sln files and the same directory structure as the source directory.

W.Perrin
  • 4,217
  • 32
  • 31