Skip to content

junlileeds/pybind11_cmake_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pybind11_cmake_example for learning pybind11

An example pybind11 module built with a CMake-based build system. This is useful for C++ codebases that have an existing CMake project structure.

Prerequisites

On Linux

  • A compiler with C++11 support
  • CMake >=3.4

Installation

git clone --recursive https://github.com/junlileeds/pybind11_cmake_example.git
pip3 install ./pybind11_cmake_example

Test call

python3
import pybind11_cmake_example
pybind11_cmake_example.add(1,2)
pybind11_cmake_example.subtract(2,1)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published