A simple startingpoint for CMake, C++ and SDL2 combined in a (fairly) neat way.
Well, first of all, you need some form of a development environment. I personally use CLion, but you can use whatever you want. So, since I use CLion, I will explain how to set it up in CLion.
First of all, you need to download the SDL2 development libraries.
You can do this by going to it's GitHub repo here and grab the devel minGW zip file, than dump the contents like the example version in the ./libs/SDL2
directory inside your project.
If you run into any issues in regard to CMakes inability to find the SDL2 libraries, you probably need to add the SLD2
directory to your PATH
variable inside your OS (Operating System).
👤 GlitchTech Developments
- Website: https://glitchtech.eu
- Twitter: @GlitchTechEU
- GitHub: @GlitchTech-Developments
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!