<div class="gmail_quote">On Fri, Oct 2, 2009 at 4:03 AM, Romain CHANU <span dir="ltr"><<a href="mailto:romainchanu@gmail.com">romainchanu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>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.<br><br>I have been reading these pages:<br><br><a href="http://www.itk.org/Wiki/CMake:Eclipse" target="_blank">http://www.itk.org/Wiki/CMake:Eclipse</a><br>
<a href="http://www.itk.org/Wiki/Eclipse_CDT4_Generator" target="_blank">http://www.itk.org/Wiki/Eclipse_CDT4_Generator</a><br><br>However, they seem quite out-dated :-\<br><br>Could anyone tell me what are the best procedures / practices to follow when using the latest version of Eclipse and CMake? <br>
<br></blockquote><div><br>Hi,<br><br>We use option #1 on this page (the CMake CDT4 generator) with a completely
out-of-source build directory and we think it works pretty well.<br>
<a href="http://www.itk.org/Wiki/CMake:Eclipse" target="_blank">http://www.itk.org/Wiki/CMake:Eclipse</a><br>
<br>
By completely out-of-source I mean something like this:<br>
Source dir in:
/home/user/source/Foo<br>
Build dir in:
/home/user/workspace/Foo.linux<br>
<br>
Some other suggestions are to always remember to set CMAKE_BUILD_TYPE
to Debug if you want debugging to work in Eclipse. Also this[1] bug is
still in the wild, so avoid naming executables the same name as a
PROJECT().<br><br>
[1] = <a href="http://public.kitware.com/Bug/view.php?id=5938">http://public.kitware.com/Bug/view.php?id=5938</a><br>
<br>
Also, there are some improvements in preprocessor statement
highlighting in CMake 2.8.0 RC so you might want to try that version
out.<br>
<a href="http://www.cmake.org/files/v2.8/">http://www.cmake.org/files/v2.8/</a><br>
<br>HTH<br><br></div></div>-- <br>Philip Lowman<br>