[CMake] Cmake with Eclipse

Joachim Zettler joachim_zettler at yahoo.de
Tue Jun 5 09:41:01 EDT 2007


Dear all,

thank you for your help up to now. I followed the tutorials you provided to
me and made a Standard C++ makefile project.

Afterwards I tried to adjust the make command but it is not working. Here
you can find the command.

mingw32-make -f build\Makefile

The makefile is actually in a build folder and i generated it before with
cmake -G "MinGW Makefiles". Now it seems that the build\makefile is not
working. Also build/makefile is wrong. I dont want to write the full path
because it depends on which pc I actually work.

Up to now I also create the makefile myself everytime I change something in
the cmakelist.txt. I have read about an option to run external tools but I
dont know exactly how to implement this so that cmake is running only when
something cmakelist has changed. Is there also a possibility to choose
between release and debug? In vc++ this was very easy to handle :)

I know that some of the questions might be stupid but up to now I am still
learning :)

Thank you in advance.

Joachim

2007/6/5, Mike Jackson <imikejackson at gmail.com>:
>
> http://www.cmake.org/Wiki/CMake_Editors_Support
> There is an entry for using CMake with Eclipse. The wiki article is
> written assuming Unix/Linux/OS X but there should be no reason why the same
> would not work for MinGW. Note I have NOT tried it.
>
> The basics are:
> 1: Use CMake on Windows to generate the MinGW Makefiles
> 2: Launch Eclipse and create a "Standard C++ Makefile Project"
> 3: Edit the "Make" settings to point to the "mingw32make" executable and
> the MakeFile generated by CMake.
>
> I will leave the rest as an exercise to the reader.
>
> --
> Mike Jackson   Senior Research Engineer
> Innovative Management & Technology Services
>
>
> On Jun 5, 2007, at 9:03 AM, Joachim Zettler wrote:
>
> Dear all,
>
> I want to integrate cmake with the ECLIPSE IDE and cdt.
>
> To be honest I am a beginner and therefore I have not really an idea on
> how to handle it. I use MinGW with WinXP to develop under Windows.
>
> It would be very nice if somebody can help me on how to set up Eclipse to
> use cmake to generate the Makefiles for mingw and the g++ compiler.
>
> Thank you very much in advance.
>
> Joachim
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070605/9f28a3eb/attachment.htm


More information about the CMake mailing list