In this example, we'll use SVN and describe the procedure to create a project by checking out the source from several folder
locations in your version control system. For example, you have a folder in SVN called my_big_project, and this folder contains 100 subfolders (where each of them represent a different binary).
If the my_big_project folder has a Makefile and some other common folders, such as public_includes that you need in order to compile your subfolder my_binary, you'd have to follow these steps:
-
Follow the instructions to check out a folder (my_big_project) as a new project, and then deselect the option Checkout recursively (SVN can't check out one file; it has to check out the entire folder).
-
Locate the my_binary subfolder in SVN, right click, select , and then select the option Check out as folder into existing project.
-
Click Next.
-
Select the previously created project.
-
Click Finish.
-
Optional: If you require any other subfolders, repeat steps 1 through 3.
-
Switch to the C/C++ Perspective.
Note: If you checked out more than one project that shares an SVN folder as its project root, you can't commit the .project file back into SVN. You would need to add it to the SVN ignore property to prevent it from showing up as a changed resource.