Skip to content

cpmbits/cpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8b814f3 · Jan 24, 2022
Jan 2, 2021
Jan 24, 2022
Jun 9, 2021
Dec 18, 2021
Jan 17, 2020
Nov 24, 2021
Jan 17, 2020
Jan 27, 2021
Apr 30, 2020
Jan 24, 2022
Apr 30, 2020

Repository files navigation

cpm: A modern project management tool for C/C++ projects CI

You can find the documentation in the cpmbits website.

Installation

pip3 install cpm-cli

CPM depends on CMake and ninja for the build process.

Getting started

cpm create DeathStartLaserBackend
cd DeathStartLaserBackend
cpm build

After creating the project, the binary will be available in the project build directory.

./build/DeathStartLaserBackend

Manage dependencies

CPM manages your project dependencies through CPM-Hub. In order to install a bit, declare it in the project descriptor:

build:
  bits:
    sqlite3: '3.32.3'
test:
  bits:
    cest: '1.0'

Then use the command line to install all dependencies.

cpm install

Run your tests

cpm test

Test sources reside in the tests directory. cpm will consider as test suites any files that match the expression test_*.cpp.