> For the complete documentation index, see [llms.txt](https://docs.play.cronos.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.play.cronos.org/readme/setup-in-a-demo-visual-c++-project.md).

# Setup in a demo project

## Windows

### **Visual Studio Project**

Start with a C++ project with `.sln` and `.vcxproj` files:

1. Clone the current repository

   ```
   git clone https://github.com/cronos-labs/play-cpp-sdk.git
   ```
2. Unzip the archive file into `demo` folder, and replace the original `sdk` folder
3. Open `demo.sln` which includes two projects: `demo` (dynamic build) and `demostatic` (static build). If you use Visual Studio 2022, retarget project, and upgrade PlatformToolset to v143.
4. Select `Release` profile.
5. Right click `demo` or `demostatic` project, click `Build` or `Rebuild` to build the project

### **CMake Project**

Build modern, cross-platform C++ apps that don't depend on `.sln` or `.vcxproj` files:

1. Open Visual Studio, then open a local folder in welcome window (or click `File` > `Open` > `Folder...` in the menu), locate the `demo` folder and open it
2. Select configuration `x64-Release` in the tool bar
3. Click `Build` > `Build All` or `Rebuild All` to build the project

## Mac

1. Clone the current repository

   ```
   git clone https://github.com/cronos-labs/play-cpp-sdk.git
   ```
2. Unzip the archive file into `demo` folder, and replace the original `sdk` folder
3. Under `demo` folder and build the `demo` project with g++, clang++ or default compiler

   ```
   make CXX=g++     # Compile with g++
   make CXX=clang++ # Compile with clang++
   make             # Compile with default compiler
   ```

## Linux

1. Clone the current repository

   ```
   git clone https://github.com/cronos-labs/play-cpp-sdk.git
   ```
2. Unzip the archive file into `demo` folder, and replace the original `sdk` folder
3. Under `demo` folder and build the `demo` project with g++, clang++ or default compiler

   ```
   make CXX=g++     # Compile with g++
   make CXX=clang++ # Compile with clang++
   make             # Compile with default compiler
   ```
