Eclipse CDT - Create a Subdirectory in a Project

I would like to know if there is an option in Eclipse (CDT) to build only part of the project.

In my situation, I got a very large single project, which consists of many subdirectories, and my build system is a custom script. Now, if I run a custom script from the project root folder, it will build all the project subfolders. this takes a lot of time, and I would like to be able to instruct the CDT to execute a custom build command, depending on which folder is selected in the source tree. (my custom build script will then build only the contents of this directory).

is it possible to perform such an action in the CDT? (I use Galileo).

+5
source share
2 answers

You can create a custom goal. There is a specific “Make a goal” view where you can view / add / edit them. We use them in our project to create individual components of our project. The trick is that you will need to create a new target for each subdirectory. The bonus is that you easily copy each target into subdirectories.

Also, to save time, you need to know the short cuts by heart: (in Indigo) F9 to restart the last target and CTRL + SHIFT-Q, M to display the Make Target view .; -)

In addition, you should upgrade to Indigo - if your plugins allow this. The cdt plugin has improved significantly since then.

+2
source

, CDT . , . , makefile; " "?

+1

All Articles