An open API service indexing awesome lists of open source software.

https://github.com/glitchtech-developments/sdl2-cmake-starter

A simple startingpoint for CMake, C++ and SDL2 combined together in a (fairly) neat way.
https://github.com/glitchtech-developments/sdl2-cmake-starter

Last synced: about 1 year ago
JSON representation

A simple startingpoint for CMake, C++ and SDL2 combined together in a (fairly) neat way.

Awesome Lists containing this project

README

          

Welcome to SDL2 CMake Starter 👋




License: MIT

Twitter: GlitchTechEU

> A simple startingpoint for CMake, C++ and SDL2 combined in a (fairly) neat way.

## How to start building?

Well, first of all, you need some form of a development environment. I personally use [CLion](https://www.jetbrains.com/clion/), but you can use whatever you want.
So, since I use CLion, I will explain how to set it up in CLion.

### Setting up SDL2

First of all, you need to download the SDL2 development libraries.
You can do this by going to it's GitHub repo [here](https://github.com/libsdl-org/SDL/releases/latest) and grab the devel minGW zip file, than dump the contents like the example version in the `./libs/SDL2` directory inside your project.

### Troubleshooting

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).

## Author

👤 **GlitchTech Developments**

* Website: https://glitchtech.eu
* Twitter: [@GlitchTechEU](https://twitter.com/GlitchTechEU)
* GitHub: [@GlitchTech-Developments](https://github.com/GlitchTech-Developments)

## 🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check [issues page](https://github.com/GlitchTech-Developments/SDL2-CMake-Starter/issues).

## Show your support

Give a ⭐️ if this project helped you!