[CMake] eclipse nmake include folders
Alexander Neundorf
a.neundorf-work at gmx.net
Tue Jun 17 13:46:00 EDT 2008
On Tuesday 17 June 2008, Miguel A. Figueroa-Villanueva wrote:
> On Tue, Jun 17, 2008 at 10:18 AM, Mehdi Rabah wrote:
> > Hi CMake folks,
> >
> > As always, I'm very impressed with the work you've done since the last
> > version. I got my project working in Eclipse with the microsoft compiler
> > in no time.
> >
> > About the Eclipse NMake generator : I suppose cmake have some default
> > include folders (like "C:\Program Files\Microsoft Visual Studio
> > 9.0\VC\include"). Is it possible to ask cMake to add these folder in my
> > eclipse project setting ? For now, I see the folders that I explicitely
> > added with include_directories, but I would like to have them all by
> > default. The goal is to have the eclipse automatic completion working
> > with the STL, without extra configuration steps.
>
> Hello Mehdi,
>
> I'm glad that you find the Eclipse generator useful!
>
> Currently, for the NMake generator one needs to have "sourced" the
> vsvars32.bat file to set up the environment so that cmake can find the
> tools etc. Since, the user sources this file at CMake time and then
> this environment will not be available when running eclipse, I put the
> the values of: PATH, INCLUDE, LIB, and LIBPATH into the .project file
> under
If somebody comes up with a nice way to do this automatically (like reading
the env. vars on the first cmake run, converting them into cmake vars and
storing them in the cache so they can be used later on with
include_directories() etc.) maybe the cmake devs would accept such a patch.
Alex
More information about the CMake
mailing list