Setup SDL2 with CMake and Visual Studio (Game Development)

Описание к видео Setup SDL2 with CMake and Visual Studio (Game Development)

In this video we create a new CMake project using Visual Studio and work with it directly within Visual Studio, without producing a VS project or solution. We then use find_package to add SDL2 as a 3rd party library and link to it in order to compile our sample SDL2 application. We use SDL_CreateWindow to setup a window and SDL_CreateRenderer to setup the renderer.

0:00 Introduction
0:43 Create CMake project
1:42 Add SDL2 using find_package
2:28 Use CMAKE_PREFIX_PATH to help find SDL2
4:55 Setup includes and linked libraries
6:38 SDL main function and library setup
9:51 SDL_Init and SDL_Quit
11:03 SDL2.dll file location
13:54 Clear the screen and draw a mighty dot!

Music: Bensound
License code: MJ7W9AT6VR0ZC89B

Комментарии

Информация по комментариям в разработке