PDA

View Full Version : How can I create a vcproj file with specific subfolders with QMake



murrekatt
5th March 2010, 09:11
Hi all!

I'm trying to figure out how to write a .pro file that I can use to generate a vcproj file (VS2003) that would reflect the file structure as subfolders. Let me give an example what I'd like to do.

The file structure i have is something like this:

Library/

Subfolder1/

Class1.h
Class1.cpp
Class2.h
Class2.cpp
Subfolder2/

Class3.h
Class3.cpp
Subfolder3/

Class4.h
Class5.h
Class5.cpp



All this I want to build into a static library called Library.lib.

And in Visual Studio I'd like to have a solution file with a project called Library that has subfolders Subfolder1, Subfolder2 and Subfolder3. Currently I can just get all the files into Source files, Header files etc. This I would like to not have.

Does anyone know if this is possible and how to achieve it?

I would be very happy to know how to do this so thanks in advance!

murrekatt
10th March 2010, 10:12
Anyone? Is it even possible to do this?