Hi David,

Generation of project files in CMake is a one-way process. CMake is not able to 
edit its own input (CMakeLists.txt). To update a project managed by CMake, you 
should update CMakeLists.txt manually and regenerate your CDT project.

Best regards,

Miroslav

From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of David Aldrich
Sent: Wednesday, April 20, 2016 11:42 AM
To: cmake@cmake.org<mailto:cmake@cmake.org>
Subject: [CMake] How to use CMake with Eclipse CDT?

Hi

I want to build an Eclipse CDT (C++) project on Linux that can be maintained 
using CMake.  I have seen the notes on the Eclipse CDT4 Generator here:

https://cmake.org/Wiki/Eclipse_CDT4_Generator

Is the sole purpose of that generator to create a CDT project from a CMake 
makefile?

Or, having run the generator, will CDT continue to maintain the project with 
CMake, adding new source files to CMakeLists.txt as required?  This is what I 
want to achieve, so that my project can be built by another IDE, that 
understands CMake but not CDT, at any time.

Best regards

David

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to