Home - Garcia6l20/cpppm GitHub Wiki
A project manager for c++
cpppm
is c++ build system and package manager (through conan
), it aims to provide an easy way to craft c++ projects for building, running, testing and managing dependencies somewhat like npm does for node.
cpppm
on giving the whole flexibility of python for managing your project. Like so you can mix it with any other
python package for crafting amazing projects.
cpppm
is available on PyPi
pip install cpppm
- main.cpp
#include <iostream>
int main(int argc, char** argv) {
std::cout << "Hello " << argc > 1 ? argv[1] : "world" << " !\n";
return 0;
}
- project.py:
from cpppm import Project, main
project = Project('hello')
hello = project.main_executable()
hello.sources = 'main.cpp'
if __name__ == '__main__':
main()
Now you can run your hello target:
$ python ./project.py run hello cpppm
Hello cpppm !