mkdir mitograph
cd mitograph
wget https://www.vtk.org/files/release/8.2/VTK-8.2.0.tar.gz
tar -xvf VTK-8.2.0.tar.gz && cd VTK-8.2.0
mkdir build && cd build
brew install cmake
brew install libpng
export CFLAGS="-DPNG_ARM_NEON_OPT=0"
export CXXFLAGS="-DPNG_ARM_NEON_OPT=0"
cmake -DPNG_PNG_INCLUDE_DIR=/opt/homebrew/include -DPNG_LIBRARY_RELEASE=/opt/homebrew/lib/libpng.dylib ..
make
sudo make install
cd ../..
git clone https://github.com/vianamp/MitoGraph.git && cd MitoGraph
mkdir build && cd build
cmake ..
make