[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.cdt] Re: Importing a dependent projects

Barzo wrote:

Hi,

I'm working on a project that depends on others.
The folder structure is:

MAIN_PROJECT_FOLDER
 |- docs
 |- include
 |- lib
 |- project
 |    |- eclipse
 |    |- MSVC
 |
 |- src
 |- thirdparty
 |     |- Sub Project 1
 |     |       |- win32
 |     |           |- MSVC
 |     |- Sub Project 2
 |     |       |- win32
 |     |           |- MSVC
 |     |- Sub Project 3
 |     |       |- win32
 |     |           |- MSVC
 .     .
 |     |- Sub Project n
 |     |       |- win32
 |     |           |- MSVC


Each SubProject has its own makefile in the root folder while my project
doesn't has one.

Also each SubProject has a Win32 folder with a MS Visual Studio project
file, so is very simple in VS to create a solution that contains all
projects.

I would like to do the same in eclipse.
Creating a project for each "Sub Projects" (in a folder named 'eclipse'
inside the win32 folder) and adding them to the workspace:

 |- thirdparty
 |     |- Sub Project 1
 |     |       |- win32
 |     |           |- MSVC
 |     |           |- eclipse
 |     |- Sub Project 2
 |     |       |- win32
 |     |           |- MSVC
 |     |           |- eclipse

I tried to do the following:

1. Create a new C++ Makefile Project into  SubProject1win32eclipse
2. Link a folder to the project

But it doesn't work because "it overlaps the location of the project
that contains the linked resource"!

So, is a way to do this?

Also doing this, in the future, will be easy to import all projects in
one step.
Eclipse does not support "nested" projects i.e. a project in the subfolder of another project. There are several bugzilla requests to change this behavior but I guess it will never happen.
I suggest you do the following:


Eclipse_MAIN_PROJECT_FOLDER
 |- docs
 |- include
 |- lib
 |- project
 |    |- MSVC
Eclipse_Sub Project 1
 |     |       |- win32
 |     |           |- MSVC
Eclipse_Sub Project 2
 |     |       |- win32
 |     |           |- MSVC
Eclipse_Sub Project 3
 |     |       |- win32
 |     |           |- MSVC


Axel