all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Luka <ribonucleico@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: C++ projects: Automatically indexing -I files in existing make files
Date: Fri, 12 Oct 2012 06:56:29 -0700 (PDT)	[thread overview]
Message-ID: <b5840301-38b6-40b9-938e-807a78c1c13b@googlegroups.com> (raw)

After reading:

* A Gentle Introduction to CEDET: 
http://alexott.net/en/writings/emacs-devenv/EmacsCedet.html#sec6

* A Functional Introduction to CEDET-EDE:
http://epsilonvectorplusplus.wordpress.com/2012/04/27/a-functional-introduction-to-cedet-ede/

I learn that when creating a project folder with an existing make file and source code, I can have semantic index the files by either:

1. defining a simple EDE project with:

    ((ede-cpp-root-project "Test"
                :name "Test Project"
                :file "~/work/project/CMakeLists.txt"
                :include-path '("/"
                                "/Common"
                                "/Interfaces"
                                "/Libs"
                               )
                :system-include-path '("~/exp/include")
                :spp-table '(("isUnix" . "")
                             ("BOOST_TEST_DYN_LINK" . "")))

2. or by specifying the include paths to semantic directly with

   (semantic-add-system-include "~/exp/include/boost_1_37" 'c++-mode)

But both methods still require me to type the paths manually. Is there any way to have Emacs automatically identify the include paths for semantic from an existing make file?

--- Background: --- 

Some IDEs have a function to autodiscover "gcc -I" paths from an existing make file. For example, in Eclipse, you can create a project on a path with an existing make file and source code, and Eclipse would infer the include paths for its "intellisense" when building the project (I presume Eclipse parses the output of GNU make to do this). I would like to do the same in Emacs.


                 reply	other threads:[~2012-10-12 13:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b5840301-38b6-40b9-938e-807a78c1c13b@googlegroups.com \
    --to=ribonucleico@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.