Coder Social home page Coder Social logo

cookiecutter-cppyy-cmake's Introduction

cookiecutter-cppyy-cmake

Build Status License: MIT

A cookiecutter template for using cppyy to generate python bindings for c++ code

Requirements

Install cookiecutter command line: pip install cookiecutter

Usage

Generate a new Cookiecutter template layout: cookiecutter gh:camillescott/cookiecutter-cppyy-cmake

You will then be prompted to fill in the values for your project. The project name can contain spaces; by default, they will be replaced by dashes for the repo name (the name of the generated folder with the project skeleton) and underscores for the package name (the name of the python package for the generated bindings). cpp_lib_name is the name of the C++ library being wrapped; it should be different from the pkg_name. You needn't prefix it will "lib," as this will be done for the resulting shared libraries by CMake. The cpp_namespace is the project namespace for the generated code. You don't necessarily need to keep this in your final project, but for the love of god please namespace your C++ libraries...

See cppyy-knn for an example project. cppyy-bbhash is also based on this template, though CMakeLists.txt is modified to generate a static library.

License

This project is licensed under the terms of the MIT License

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.