/plus

Plus is a project manager and package manager for c++

Primary LanguagePythonMIT LicenseMIT

PyPi Package Version

Plus

Plus is a simple command line tool to manage c++ projects.

Features

  • Create a new project
  • Run the project
  • Build the project
  • Build static library
  • Build shared library
  • Build application without console
  • Build console application
  • Manage multiple subprojects
  • Manage dependencies
  • Custom dependencies
  • Add a new source file
  • Add a new header file
  • Custom build commands for dependencies

Requirements

  • python3
  • git
  • gcc

Installation

Pip

Installation using pip (a Python package manager):

$ pip install plus-cpp

From source

$ git clone
$ cd plus
$ python3 setup.py install

Usage

$ plus --help

Hello World

$ plus init hello_world
$ cd hello_world
$ plus run

Subprojects

First create a new project to be the parent project.

$ plus init parent_project

Then create a new project to be the child project.

$ cd parent_project
$ plus init child_project --lib

Now you can add the child project to the parent project. In the parent project directory, open the project.toml file and add the child project to the subprojects list.

...
[subprojects]
child_project = { path = "child_project" }
...

Now you can build the parent project and the child project will be built too.

$ plus build