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.
- 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:\Program Files\CMake\bin
- Save, start a new cmd prompt and type cmake, you should see output from cmake.
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.
git clone --recursive https://github.com/Blizzard/s2client-api
cd s2client-api
mkdir build
cd build
cmake ../ -G "Visual Studio 15 Win64"
start s2client-api.sln
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.
git clone --recursive https://github.com/Blizzard/s2client-api
cd s2client-api
mkdir build
cd build
cmake ../ -G Xcode
open s2client-api.xcodeproj/
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
git clone --recursive https://github.com/Blizzard/s2client-api
cd s2client-api
mkdir build
cd build
cmake ../
make
If you cloned the repo without specifying --recursive you can initialize and checkout the required submodules with the following git command -
git submodule update --init --recursive