Prerequisites
- Download and install CMake.
- A compiler with C++14 support.
- If you are already cloned the repository, make sure a recursive clone of the project is done to download all submodules. If you already cloned the repository without specifying
--recursive
you can initialize and checkout the required submodules with the following git command: $ git submodule update --init --recursive
- Windows: Download and install Visual Studio (2019 or older).
- Linux: Install 'gcc-c++'.
- Linux: Install the 'make' utility.
- OS X: Install XCode.
- OS X: Install XCode command-line tools.
## Windows (Visual Studio)
:: Clone the project.
$ git clone --recursive https://github.com/alkurbatov/cpp-sc2.git
:: Enter the working directory.
$ cd cpp-sc2
:: Create build directory.
$ mkdir build
$ cd build
:: Create Visual Studio project files.
:: For Visual Studio 2019.
$ cmake ../ -G "Visual Studio 16 2019"
:: For Visual Studio 2017.
$ cmake ../ -G "Visual Studio 15 2017 Win64"
:: Build the project using Visual Studio.
$ start cpp-sc2.sln
## Windows (cmdline)
:: Clone the project.
$ git clone --recursive https://github.com/alkurbatov/cpp-sc2.git
:: Enter the working directory.
$ cd cpp-sc2
:: Create build directory.
$ mkdir build
$ cd build
:: Build the project.
$ cmake --build . --parallel
## Mac (Xcode)
# Clone the project.
$ git clone --recursive https://github.com/alkurbatov/cpp-sc2.git
# Enter the working directory.
$ cd cpp-sc2
# Create build directory.
$ mkdir build
$ cd build
# Create Xcode project files.
$ cmake ../ -G Xcode
# Build the project using Xcode.
$ open cpp-sc2.xcodeproj/
## Mac (cmdline)
# Clone the project.
$ git clone --recursive https://github.com/alkurbatov/cpp-sc2.git
# Enter the working directory.
$ cd cpp-sc2
# Create build directory.
$ mkdir build
$ cd build
# Create makefiles.
$ cmake ../
# Build the project.
$ VERBOSE=1 cmake --build . --parallel
Linux (cmdline)
# Clone the project.
$ git clone --recursive https://github.com/alkurbatov/cpp-sc2.git
# Enter the working directory.
$ cd cpp-sc2
# Create build directory.
$ mkdir build
$ cd build
# Create makefiles.
$ cmake ../
# Build the project.
$ VERBOSE=1 cmake --build . --parallel