I recently created a portfile for irrlicht on vcpkg:
https://github.com/adrido/irrlicht-vcpkg
vcpkg is a C/C++ library manager that works on Windows, Linux and MacOS. ( https://github.com/Microsoft/vcpkg/)
It makes it very easy to manage c++ libaries especialy on windows. With this port it is possible to install Irrlicht with vcpkg too.
It is installed via vcpkg.exe install irrlicht to build x86 windows dynamic.
also vcpkg.exe install irrlicht[tools,fast-fpu]:x64-windows-static is possible, to install it with tools and fast maths for x64 windows but as a static lib.
It automatically downloads, builds and installs the dependencies zlib, libpng, jpeg, and bzip2.
To use the installation via
- MSBuild:
- Run .\vcpkg.exe integrate install
- Just use it in VisualStudio (include irrlicht.h and link to Irrlicht.lib)
- CMake:
- In your CMakeLists.txt just add
Code: Select all
find_package(Irrlicht REQUIRED) target_link_libraries(main Irrlicht)
- execute cmake like
Code: Select all
cmake . -DCMAKE_TOOLCHAIN_FILE=[vcpkg root]\scripts\buildsystems\vcpkg.cmake
CMake should add the correct include path and link to the Irrlicht.lib
The Irrlicht.dll and its dependencies are also automatically copied to the bin dir - In your CMakeLists.txt just add
It would also great if I would get some feedback, whether more features are required /wanted, or if this should also build the examples, etc...
The direct download url of the stable 8.4 version is realy long and I don't know if this will work over time.[1] If there is a shortcut that is save to use it would be great.
vcpkg works best if the package is downloaded from github or from another git service, but it seems Irrlicht is using a different vcs.
I also want to say thanks to Darktib for creating the CMakeLists.txt file. [2]
Regards
addi
[1] = https://downloads.sourceforge.net/proje ... autoselect
[2] = http://irrlicht.sourceforge.net/forum/v ... =9&t=50774