I have an C++ application, which consists of several VS2010 projects and two Qt Creator projects (for the GUI).
I would like to have a build script, which builds all the projects at once. So what would be the best tool for the job?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Personally, I would change all projects to Qt projects and assemble them using the SUBDIRS template for .pro files.
You could then either run qmake on the top-level .pro file or do
to create a VS solution and .vcproj files.
If that is not an option, you could just write a batch script which compiles them all. For VS 2008 I had batch scripts like this (File existence checks, error code handling etc omitted):
The first is needed so vcbuild and nmake etc are known. It could be VS100COMNTOOLS or something like that for VS 2010, you may check your environment variables for that. Or maybe it’s not even needed anymore.