https://github.com/cpmbits/cpm
A modern project management tool for C/C++ projects
https://github.com/cpmbits/cpm
c cpp dependency-manager framework
Last synced: 3 months ago
JSON representation
A modern project management tool for C/C++ projects
- Host: GitHub
- URL: https://github.com/cpmbits/cpm
- Owner: cpmbits
- License: gpl-3.0
- Created: 2020-01-17T22:36:10.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-25T07:52:49.000Z (about 4 years ago)
- Last Synced: 2025-07-04T21:50:48.295Z (9 months ago)
- Topics: c, cpp, dependency-manager, framework
- Language: Python
- Homepage: http://cpmbits.com
- Size: 2.6 MB
- Stars: 11
- Watchers: 3
- Forks: 2
- Open Issues: 58
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# cpm: A modern project management tool for C/C++ projects 
You can find the [documentation](https://cpmbits.com/documentation/getting-started.html) in the [cpmbits website](https://cpmbits.com).
## Installation
`pip3 install cpm-cli`
CPM depends on [CMake](https://cmake.org/) and [ninja](https://ninja-build.org/) 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:
```yaml
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`.