Skip to content

jacquemier/cmake_python_wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

cmake_python_wrapper

C Python wrapper generated by CMake example This example was built from this BLOG: https://bloerg.net/2012/11/10/cmake-and-distutils.html

Installation

Note: INSTALL_DIR represents your target installation directory

git clone https://github.com/jacquemier/cmake_python_wrapper.git
mkdir build
cmake ../cmake_python_wrapper/v2 -DCMAKE_INSTALL_PREFIX=INSTALL_DIR
make install

Test

export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:INSTALL_DIR/lib
python

>>> import foo
>>> foo.square(10)

About

C python wrapper entirely generated by CMake

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published