Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Can .cproject and .project be placed in a directory other than the project root?
Can .cproject and .project be placed in a directory other than the project root? [message #219080] Wed, 09 July 2008 19:02 Go to next message
Eclipse UserFriend
I want to create a C makefile project from an existing file structure. I
think I've figured out how to do that, but I don't want the .cproject and
project files in the project root directory. Is there a way to specify
where they are placed? Here is what I have:

Project Root
|
+-- source directory
|
+-- Makefile
|
+-- .project
|
+-- .cproject

Here is what I want:

Project Root
|
+-- source directory
|
+-- Makefile
|
+-- tools directory
|
+-- eclipse
|
+-- .project
|
+-- .cproject
Re: Can .cproject and .project be placed in a directory other than the project root? [message #219112 is a reply to message #219080] Thu, 10 July 2008 03:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: subs._nospam_consertum.com

AFAIK, they *must* be in the project root.

Kamron Hays wrote:
> I want to create a C makefile project from an existing file structure.
> I think I've figured out how to do that, but I don't want the .cproject
> and project files in the project root directory. Is there a way to
> specify where they are placed? Here is what I have:
>
> Project Root
> |
> +-- source directory
> |
> +-- Makefile
> |
> +-- .project
> |
> +-- .cproject
>
> Here is what I want:
>
> Project Root
> |
> +-- source directory
> |
> +-- Makefile
> |
> +-- tools directory
> |
> +-- eclipse
> |
> +-- .project
> |
> +-- .cproject
>


--
Derek
Re: Can .cproject and .project be placed in a directory other than the project root? [message #219151 is a reply to message #219112] Thu, 10 July 2008 12:08 Go to previous messageGo to next message
Eclipse UserFriend
don't know about the Makefile,
but you can link the source-directory to another directory in the
project settings -> C/C++ General -> Paths and symbols -> Source
location -> Create link folder

regards
Michael
Re: Can .cproject and .project be placed in a directory other than the project root? [message #219211 is a reply to message #219112] Thu, 10 July 2008 15:59 Go to previous message
Eclipse UserFriend
Derek is right. The Eclipse platform currently enforces this
restriction. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=35973

Derek wrote:
> AFAIK, they *must* be in the project root.
>
> Kamron Hays wrote:
>> I want to create a C makefile project from an existing file
>> structure. I think I've figured out how to do that, but I don't want
>> the .cproject and project files in the project root directory. Is
>> there a way to specify where they are placed? Here is what I have:
>>
>> Project Root
>> |
>> +-- source directory
>> |
>> +-- Makefile
>> |
>> +-- .project
>> |
>> +-- .cproject
>>
>> Here is what I want:
>>
>> Project Root
>> |
>> +-- source directory
>> |
>> +-- Makefile
>> |
>> +-- tools directory
>> |
>> +-- eclipse
>> |
>> +-- .project
>> |
>> +-- .cproject
>>
>
>


--
Chris Recoskie
Team Lead, IBM CDT Team
IBM Toronto
http://www.eclipse.org/cdt
Previous Topic:downloads of old Eclipse SDKs
Next Topic:can't browse C++ code
Goto Forum:
  


Current Time: Wed Jun 04 08:41:32 EDT 2025

Powered by FUDForum. Page generated in 0.16338 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top