Hi, I've just finished a script which converts eclipse cdt-4 project
files generated by CMake 2.8.x into QtCreator generic project files.
I've only tested the script on linux so far with blender and inkscape
cmake projects.

The main advantages over qtcreators cmake support is that it gets
includes and defines from the project, every so often I see complaints
about this in IRC so thought others might find this useful.

- sets up qtcreator generic project file
- tested with cmake 2.8 and qtcreator 2.3
- compatible with both python2.x and 3.x
- gets compiler defines and includes from eclipse project files.
- optionally get compiler defines
- option to use only source code cmake knows about or glob all source
from project dir too.


Help Message:
----
QtCreator Project File Generator:
  'cmake_eclipse_to_qtcreator.py' [build_dir] [options]

  --all: Use all source files found in the source dir
         by recursively globbing.
  --with-comp-defs: Use compiler defines




Example output:
----
Generating project files for: 'blender'

  --all=False
  --with-comp-defs=True

  Build Dir: '/dsk/data/src/blender/cmake_debug'
  Source Dir: '/dsk/data/src/blender/blender'

project file written to '/dsk/data/src/blender/cmake_debug/blender.creator'
---

The script runs standalone, can be downloaded here:

 
http://ideasman42-dev-scripts.googlecode.com/svn/trunk/bin/cmake_eclipse_to_qtcreator.py

-- 
- Campbell
_______________________________________________
Qt-creator mailing list
Qt-creator@qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-creator

Reply via email to