[CMake] Best practices when using CMake 2.6 and Eclipse CDT 6.0

Mike Jackson mike.jackson at bluequartz.net
Fri Oct 2 07:43:40 EDT 2009


On Fri, Oct 2, 2009 at 4:03 AM, Romain CHANU <romainchanu at gmail.com> wrote:
> Hi,
>
> I am starting to use Eclipse CDT 6.0 / CMake 2.6 for C++ development and I
> would like to have some information on how to integrate these two software
> together.
>
> I have been reading these pages:
>
> http://www.itk.org/Wiki/CMake:Eclipse
> http://www.itk.org/Wiki/Eclipse_CDT4_Generator
>
> However, they seem quite out-dated :-\
>
> Could anyone tell me what are the best procedures / practices to follow when
> using the latest version of Eclipse and CMake?
>
> Thank you for your help.
>
> Cheers,
>
> Romain

I personally use Option #2 (I also helped write part of that page). I
find that in my particular situation, having the ability to compile
from the command line and from within eclipse can be helpful at times.
The downside to Option #2 is that you have to manually setup the
project after you generate the Makefiles. Usually you only have to do
this once so for me it is not a big deal. Those with a large number of
projects to import into Eclipse would probably find Option #2 to be a
pain. Your Choice.
    I am also on the latest CDT 6.0.1 and Eclipse Galileo SR1 and
Option 2 still works just fine. I use Eclipse CDT 6.0.1 on Windows
with MinGW, OS X, and Linux.

Hope that helps
_________________________________________________________
Mike Jackson                  mike.jackson at bluequartz.net
BlueQuartz Software                    www.bluequartz.net
Principal Software Engineer                  Dayton, Ohio


More information about the CMake mailing list