Configuring a Windows PC - tupini07/raylib-cpp-cmake-template GitHub Wiki
I suggest you use the Scoop package manager to install all the necessary dependencies. To do so, install Scoop by following the instructions on the website. Throughout the whole wiki we'll assume that on Windows you'll be using PowerShell
as your terminal.
Now install some of the tools we'll need:
scoop install cmake gcc ninja
Once the installation finishes you should have everything you need to build and run this repo. You could do it from the command line but if you're just starting then I suggest you don't go through that route, at least not initially, and instead work with an IDE that handles all the building and running commands for you. I've found VSCode to be really good for C/C++ development, so I'll suppose you're going to use that as well.
Once you install VSCode on your PC, install the C/C++ tools extension, which is what will actually enable the IDE to manage the CMake project for you.
With the extension installed now you can open the repo in VSCode (btw, make sure to pull the latest changes, I uploaded a change just when I was writing this that fixes an issue with CMake sometimes not finding the dependencies to download). The first thing you'll want to do is tell VSCode which C compiler you want to use. You can do this by clicking on the label 1
as signaled in the screenshot below. That will open up a popup menu that should hopefully list the GCC compiler you installed with Scoop 😄 Once that's selected you'll be able to build by clicking on 2
, and run the project by clicking on 3
. Note that the first build will be pretty slow since CMake will need to download all dependencies and build them.
And that's it! It should be more than enough to get you started and play with the code