Modeled after the gptoolbox/mex CMake
setup, this example
project demonstrates a minimal mex function using libigl+eigen (example.cpp
)
and how to build this function outside of MATLAB using CMake.
mkdir build
cd build
cmake ../
make
cd ../
will generate (for example, on mac) example.mexmaci