MeshLib provides CMake integration support for Linux and macOS. Please note that CMake integration is not currently supported on Windows. Example CMake configuration files are available to demonstrate how to link against the pre-built libraries. You can find these examples in the examples directory.
For a start, find the MeshLib package:
Ensure that the include
directory from the installed MeshLib package is added to your project's include directories. In your CMake configuration (CMakeLists.txt
), add:
Specify which MeshLib libraries to link with your project:
MeshLib have extended functionality that may have additional dependencies that need to be linked. Check the example CMakeLists.txt
provided in the examples directory to see how to add required dependencies: