Cxxproject

Simple,flexible,C/C++Buildsystem

Fork me on GitHub

Basic Usage

cxxproject is a utility library that aims for a simple but still powerful make-alternative for c++ projects. It is heavily based on rake and project configurations are formulated as Ruby EDSL, e.g.:

cxx_configuration do
  exe "basic",
    :sources => FileList['**/*.cpp'],
    :dependencies => ['2']
  exe "debug",
    :sources => FileList['**/*.cpp'],
    :dependencies => ['2_debug']
end

The base of each cxxproject are a set of building-blocks. One ore more building-blocks are described by a small project.rb file which specifies which

A typically rakefile that uses this system simply collects all project.rb files and feeds them into the cxx-helper.

require 'cxxproject'

BuildDir="build"
cxx(
  FileList['**/project.rb'], BuildDir, "clang")

Examples

see examples directory for some examples of the cxxproject.

Tests

There are three kinds of tests: