If you are already familiar with cmake skip to your platform's building instructions.
- Download and install CMake.
- Add CMake to your path if the installer didn't add it for you.
Windows
- Open your Environment Variables in the System properties menu.
- Under System Variables select Path and click 'Edit...'
- Append to the Path a semicolon and the string: C: Files
- Save, start a new cmd prompt and type cmake, you should see output from cmake.
Building
Windows
To build on windows generate a Visual Studio 2017 solution file with CMake.
- Make sure a recursive clone of the project is done to download all submodules.
- Enter the working directory.
- Create a build directory for CMake artifacts.
- Create visual studio project files.
- Build with visual studio.
1 git clone --recursive https://github.com/Blizzard/s2client-api
5 cmake ../ -G "Visual Studio 15 2017 Win64"
Mac
To build on Mac generate an Xcode project with CMake.
- Make sure a recursive clone of the project is done to download all submodules.
- Enter the working directory.
- Create a build directory for CMake artifacts.
- Create Xcode project files.
- Build with Xcode.
1 git clone --recursive https://github.com/Blizzard/s2client-api
6 open s2client-api.xcodeproj/
Linux
To build on Linux generate makefiles with CMake.
- Make sure a recursive clone of the project is done to download all submodules.
- Enter the working directory
- Create a build directory for CMake artifacts.
- Create makefiles
- Build with make
1 git clone --recursive https://github.com/Blizzard/s2client-api
Working with submodules
If you cloned the repo without specifying –recursive you can initialize and checkout the required submodules with the following git command -
1 git submodule update --init --recursive