Builds SublimeClang project files with the includes for a cmake-based project
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.mkd
SublimeProjectFileCreator

README.mkd

Description

The script contains the code to create a SublimeClang project file for the Sublime Text 2 editor. It allows for automatic parsing of the CMake path files to get the required include paths for the clang compiler.

WARNING: This code is incredibly loosely held together and not tested. I had great dreams of writing proper OO code with unit tests, but I should have been doing something else that day, so I present it here 'as is'.

Requirements

Usage

The script takes a source directory (defaults to the current directory if not given), the "out of source" build directory and an output stub. The project file will be located at output_stub.sublime-project.

usage: SublimeProjectFileCreator [-h] -b BUILDDIR [-s SOURCEDIR] -o OUTPUT

optional arguments:
  -h, --help            show this help message and exit
  -b BUILDDIR, --builddir BUILDDIR
                        Build directory
  -s SOURCEDIR, --sourcedir SOURCEDIR
                        Source directory
  -o OUTPUT, --output OUTPUT
                        Name of project file