SwigCppToPython is a project that demonstrates how to use SWIG to generate Python bindings for a C++ library and provides a sample script for testing the generated module.
-
Clone the repository to your local machine:
git clone https://github.com/bakshtb/SwigCppToPython.git
-
Change to the project folder:
cd SwigCppToPython
-
Run the build script:
Windows
build_windows.bat
Linux
sudo bash ./build_linux.sh
After successfully building the project, you can test it:
The test script is located in the test folder.
Run the following commands:
-
Change to the test folder:
cd test
-
Run the test script:
Windows
run_test_windows.bat
Linux
sudo bash ./run_test_linux.sh