Using package - Garcia6l20/cpppm GitHub Wiki

Packages can be added to your project.py as follow:

from cpppm import Project, main

project = Project('hello')
project.requires = 'fmt/7.1.2'  # declare package requirement
hello = project.main_executable()
hello.sources = 'main.cpp'
hello.link_libraries = 'fmt'  # link package library
if __name__ == '__main__':
    main()

then your project can use it as a regular library:

#include <fmt/format.h>

int main(int argc, char** argv) {
    fmt::print("Hello {} !\n", argc > 1 ? argv[1] : "world");
    return 0;
}

As soon as you add a conan dependency cpppm creates a conanfile.py alongside with your project.py.