https://github.com/anvari1313/sdl-init
https://github.com/anvari1313/sdl-init
cmake cpp gcc sdl2
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/anvari1313/sdl-init
- Owner: anvari1313
- Created: 2019-12-13T07:38:54.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-13T07:39:57.000Z (over 6 years ago)
- Last Synced: 2025-01-23T17:34:05.223Z (over 1 year ago)
- Topics: cmake, cpp, gcc, sdl2
- Language: C++
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SDL Example
This project will show how to setup a project with SDL graphic library and CMake.
## Installation
### Ubuntu
1. Install library for development:
```shell script
sudo apt install libsdl2-dev
```
2. Add these lines to your cmake list file ( ```CmakeLists.txt``` ):
~~~cmake
find_package(SDL2 REQUIRED)
include_directories(${SDL2_INCLUDE_DIRS})
target_link_libraries(sdltest ${SDL2_LIBRARIES})
~~~
**Note**: `sdltest` is the name of your project and you should replace it with a proper name that is defined in your cmake file.