There are several options, but I assume that with your C ++ project appearing in a bunch of random locations, you want to create your own way to automatically create ede-cpp-root projects.
If you look in ede / ede-cpp-root.el or in emacs lisp / cedet / ede / cpp-root.el, in the comments above find ADVANCED EXAMPLE. This shows how to create three simple functions in your .emacs with rules that will create new projects upon discovery.
Suppose each of your projects is located in the following directory:
/home/BD/somewhere/MYPROJ/
then you may have code in MY-FILE-FOR-DIR (from the example) that looks like this:
(when (string-match "/MYPROJ/" dir) (expand-file-name "Makefile" (substring dir (match-end 0)) )
or if each project always has a special file, for example, ".SPECIAL", you can have
(when (file-exists-p (expand-file-name ".SPECIAL" dir))) (expand-file-name ".SPECIAL" dir))
You can probably get a lot of money from the simple Emacs Lisp code.
source share