There are two general options of integrating MeshLib into your project:
Common for both options:
Please install vcpkg, and integrate it into Visual Studio (note that vcpkg requires English language pack in Visual Studio, and vcpkg cannot be installed on FAT volumes, only on NTFS):
More details here: vcpkg
Submodule:
You can have MeshLib as submodule in your repository, and inculde all MeshLib's projects to your solution.
MeshLib/source/common.props
in other projects of your solution. CustomMRProps.props
in directory above common.props
Distribution:
You can download distribution and integrate it in your projects.
Project settings:
C/C++ -> General -> Additional Include Directories
add distribution\install\include;
Linker -> General -> Additional Library Directories
add distribution\install\app\$(Configuration);
Linker -> Input -> Additional Dependencies
add distribution\install\lib\$(Configuration)\*.lib;
C/C++ -> Preprocessor -> Preprocessor Defenitions
add _ITERATOR_DEBUG_LEVEL=0;
x64-windows-meshlib
Make sure you copy all dlls from distribution\install\app\$(Configuration);
to your $(TargetDir)
You can download dev package and install it with your Linux OS package manager. Examples of integration with cmake can be found in the ./examples
directory.
Same as for Linux, but requires brew packages to be installed: xargs brew install < /Library/Frameworks/MeshLib.framework/Versions/Current/requirements/macos.txt