Simple test to call python function in module from C.
There is a test included from cmake which executes:
./main mylib multiply 4 5
and tests the output. The multiply function is defined in the python module.
Just follow the standard cmake steps.
mkdir build
cd build
cmake ..
make
make test