I agree that this option is not obvious at all, and took me a while
to remember what I was thinking.
So, here's the deal:
1) Create your three project files as you might expect in each subdir
with M-x ede-new from a file in each of:
Use the 'Make' type, unless you want to use the automake.
2) Add a target to each project. Use a 'auxilliary' for include files
in inc. Use a program for your C sources.
3) customize the src target, and make sure you choose a compiler you
want, such as g++.
4) use Project->Project Options->Regenerate Makefiles to build a
5) This is the non-obvious part. Look in the Makefile at the C++
rules created. You will see a CXX_COMPILE variable defining the
command line. In it is an INCLUDES variable being used.
6) customize the project for your sources. M-x
ede-customize-current-project will do it, or use the menu.
7) You will see under *defaults* a slot for 'configuration-variables'.
7.1) insert a new configuration
7.2) call it 'debug',
7.3) insert a variable
7.4) call in INCLUDES, and give it a value such as "../inc"
8) repeat above with a 'release' configuration.
9) look at 'settings' to see how to switch configurations.
Note that targets also have configurations, but I discovered that they
were not hooked up. You will be able to have target specific
configurations in the next release, as I have fixed this problem.
If you cannot use a provided compiler, you will need to write your own
compiler. I can provide a hint for that if it is needed.
>>> WangXiaoyi <wangxiaoyi00@...> seems to think that:
>Saying, If i have a C++ project organized like:
>and I wanna make a target of program a.out include
>both a.cpp and b.cpp which include the a.h and b.h
>respectively. How could I get that? Could anyone
>give me a turoial for this example? thx in advance!
>This SF.Net email is sponsored by Oracle Space Sweepstakes
>Want to be the first software developer in space?
>Enter now for the Oracle Space Sweepstakes!
>Cedet-devel mailing list