First, download the latest version of the client library from Github. If you prefer, you can also build the library yourself.
Regardless of what you chose, you should have two folders: include
and libs
.
As their name suggest, the former contains the library’s header files, and the latter the static binaries.
Create / open your project.
Create a new folder named stormancer
next to your VS project file.
Copy the lib
and include
folders from the library’s package into the stormancer
folder.
Open the project properties for your project.
Select All Configurations and All Platforms on top of the property window.
Add the following line to your Additional include directories
(Configuration Properties > C/C++ > General > Additional include directories)
stormancer/include
On Win32 platforms, Stormancer needs NOMINMAX
to be defined. The easiest way is to add it to your preprocessor definitions:
(Configuration Properties > C/C++ > Preprocessor > Preprocessor Definitions)
Add the following line to your Additional library directories
(Configuration Properties > Linker > General > Additional library directories)
stormancer/libs
Add the following line to your Additional dependencies
(Configuration Properties > Linker > Input > Additional dependencies)
Stormancer$(PlatformToolsetVersion)_$(Configuration)_$(Platform).lib
Build your project.