MeshLib provides CMake integration support for Windows, Linux and macOS. 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.
MeshLib supports Windows via CMake, including integration with Visual Studio.
To enable support in Visual Studio, ensure the CMake component is installed in your Visual Studio setup. Once installed, standard CMake configuration should work seamlessly.
For easier setup and dependency management, we recommend using vcpkg as outlined in our C++ Setup Guide. You can configure your build with the following command:
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: