A course project of INF-574 in Ecole Polytechnique based on libigl <c++17>
Currently the dependencies are STL, Eigen, libigl and the dependencies
of the igl::opengl::glfw::Viewer
(OpenGL, glad and GLFW).
The CMake build system will automatically download libigl and its dependencies using
CMake FetchContent,
thus requiring no setup on your part.
To use a local copy of libigl rather than downloading the repository via FetchContent, you can use
the CMake cache variable FETCHCONTENT_SOURCE_DIR_LIBIGL
when configuring your CMake project for
the first time:
cmake -DFETCHCONTENT_SOURCE_DIR_LIBIGL=<path-to-libigl> ..
When changing this value, do not forget to clear your CMakeCache.txt
, or to update the cache variable
via cmake-gui
or ccmake
.
Compile this project using the standard cmake routine:
mkdir build
cd build
cmake ..
make
This should find and build the dependencies and create a demo_bin
binary.
From within the build
directory just issue:
./demo {filepath}
A glfw app should launch.