|LDT features inside CDT project [message #794082]
||Wed, 08 February 2012 17:30
| Robert Green
Registered: December 2010
Our projects are CDT projects which have an assets/script directory containing all of the lua files. I can't seem to find a way to get any of the benefits besides syntax highlighting with this configuration, and having a separate project just for lua files doesn't make sense because we often edit the C++ code of the backing engine from which lua extends. |
What are good solutions?
|Re: LDT features inside CDT project [message #797708 is a reply to message #794082]
||Mon, 13 February 2012 15:36
| Benjamin Cabé
Registered: July 2009
Location: Toulouse, France
Hi Robert, and sorry for the late reply,|
I see two ways for you to benefit from LDT features in a C/C++ project:
1. The solution which I think would be the most elegant is to give your CDT project the LDT nature. I have opened a bug to automate this, but in the mean time, you'll have to edit your .project file by hand.
In the <buildSpec> section, you should add
And in the <natures> section:
From this point, your project will behave not only as a CDT project, but as an LDT project as well. It means you will be able to right click on a folder, and choose "Build Path > Use as Source Folder" on the folders containing your Lua files.
2. The alternative way is to create a new Lua project in your workspace. In this project, create a new virtual folder (see related help topic) linked to the folder containing your Lua sources. Then, right click on the folder, and choose "Build Path > Use as Source Folder".
Hope this helps!
I am looking forward to further comments from you regarding the use of LDT together with CDT, since I believe it is a very common use case and there's certainly room for improvement!
Powered by FUDForum
. Page generated in 0.02390 seconds