Reputation: 898
I have a very complicated project created in Eclipse as a Perforce project, converted to a C++ project. Is there a way to port the project to one or more Visual Studio 2013 Express projects?
Upvotes: 3
Views: 6540
Reputation: 898
I found that I can drag a sub-directory from Windows Explorer directly into a MSVS filter. Using that method, only .c
, .cpp
, .h
, and .hpp
files wind up in the filter. It is a big time saver over:
Right-click > Add > Existing Item (or Alt+Shift+A), and then navigating and picking only the source and include files, one directory at a time.
Disclaimer: This is really not a satisfactory solution because there are so many nested sub-directories and the need to update as files are modified.
Upvotes: 2
Reputation: 286
If it is complicated in the sense it just have many source files but it produces a single executable then you could use the Visual Studio option to create a project from existing code. Go to 'File', 'New', 'Project from existing code' and follow the wizard. That should help if all source code is under relatively self-contained directories. From there, you would need to set the rest manually. If it is a complicated build process that generated many binaries then you would be out of luck. Notice that if you can build from the command line then visual studio can act as an editor only.
Upvotes: 0