CLion

CLion is a commercial JetBrains IDE for C++.

Setting up the project

  • First you need to clone the project from the repository. You can do this by via the command line or by using the GitHub Desktop application.

  • Open CLion and select Open from the welcome screen or File > Open from the menu bar. Navigate to the project directory and open the root folder.

  • It will pop up a Project Wizard dialog. Change the Toolchain field to Visual Studio to use MSVC compiler, if you have gcc or other compiler, select the one you prefer.

../../_images/coffee1.png

Then press OK.

  • CLion will open it’s default project view. You can see the project structure on the left side of the window. It’s normal to see some errors in the project view, as the project is not yet configured.

  • You have to open the vcpkg view in the sidebar and install the dependencies. Go to View > Tool Windows > vcpkg or in the sidebar just click to “…” and select vcpkg.

../../_images/coffee2.png
  • When you open the vcpkg view, you will see a list of dependencies. Before installing them, you have to press the edit button and in the opened dialog, set the current profile to be integrated to vcpkg.

../../_images/coffee3.png
../../_images/coffee4.png
  • Then in the CMake tab, it will automatically start downloading the dependencies and compiling them. This process may take a while, up to ~5-15 minutes. When the terminal shows “[Finished]”, you’re ready to go.

../../_images/coffee5.png
  • Now you have to select the target you want to run. You can do this by clicking the target dropdown on the top right corner of the window. Select the target you want to run. In this case is Coffee-Editor.

../../_images/coffee6.png

NOTE: if the Refreshing files… step take too long, just cancel the process and launch the game again.

../../_images/coffee7.png
  • Finally you can run the project by pressing the green play button on the top right corner of the window.

../../_images/coffee8.png