The only CMake tutorial you will ever need (easy CMake setup tutorial)

preview_player
Показать описание
CMake can make C++ development a lot easier. I don't like how people use CMake, however. In this video, I will show you how to use CMake as I do because I think it will help you if you are into game development with C++ or just C++ in general. Don't forget to practice what you see here 💪.

Important, there is a bug in the static runtime linking stuff (this thing CMAKE_MSVC_RUNTIME_LIBRARY ), the correct way of doing it is updated in the repo.

Check out this video if you want to start game development in C++:

Check out my Steam game:

Discord server:

Music: Evan King - Beyond Light

#cpp #cmake #gamedev #gameprogramming #programming
Рекомендации по теме
Комментарии
Автор

i cant wait until Midnight Arrow comes out the game looks good to me and thank you soo much for the tip on cmake i was doing it rong lol

BryanAnderson-ou
Автор

Title "The only CMake tutorial you will ever need" is basically clickbait. If you want quick project setup, just grab link from video description, if you want to learn things, then close this video, because you will learn not much

Saiyaman
Автор

It was supposed to be a CMake tutorial, but it is a VisualStudio + CMake tutorial...

alvarosanchezp
Автор

Always thrilled to wake up seeing new video from this channel.

yuwownly
Автор

Rambling, can't understand what you are saying . Terrible

Alx-jeoj
Автор

I didnt want to be told to use visual studio to simplify the cmake process. thats not actually simplifying it. the visual studio handles cmake under the hood is also an abstraction layer. simplifying means to simplify the build process such that you need as less dependencies as possible. VS Studioo is a dependency the way youre doing itl

samuraijosh
Автор

sadly you dont actually explain what cmake does. Why use target_link_library and not link_library? why use add_directory and not include_directories? what does add_subdirectory do that add_directory doesnt? cmake uses its own language. You cant learn C unless you learn what types and what commands it uses

giorgospapoulidis
Автор

Cool video, wanted to lrarn how to use CMake a long time ago but i have never found a good video and i have not learned shit, so thanks man ❤

lolcat
Автор

Man you are a LEGEND 🙌🙌
I don't know what downfalls this cmake config may have but it is soooo nice that I really don't care!
This is the cmake setup that I always have dreamed of achieving!
Thank u for sharing with us! 💪

davidmarinho
Автор

I don't wanna be dependant on visual studio. I use vscode, I just hate opening visual studio every time I want to create a new build for each change.

_and_only_Crjase
Автор

this man's accent and voiceeee broo
i can hear it for daysss

not_halls
Автор

thank you for your very helpful video. can you update moreCompleteExample project to make safeSave also dependence on profilerLib ?

dellosCao
Автор

Man your channel is just the best!!! Keep up the good work 👍

zeke
Автор

Ложь заключается в том, что Visual Studio Solution не регенерируется! На самом деле Cmake добавляет правила в решение, которые отслеживают актуальность cmake файлов и при необходимости обновляет твой проект. Все ещё представление проектов Cmake отстаёт в поддержке плагинов.

kovesik
Автор

I dont get it
Help I cant get it to work, where is the file in the first 2 mins

juliuswiest
Автор

A channel dedicated to low level programming and game dev? Sign me in!
I love low level development, just bought an OpenGL course and I'm gonna eat that up fr.

RealValkor
Автор

Hello can you make how can i do it in vim or vs code
I cant do in vs community because of file I want light like vim or vs code so make video about it

Light
Автор

This is a great video! I just have one problem, I run Linux on my main computer as I find it easier for software and game development. Linux doesn't support MS Visual Studio, what can you recommend?

CurlyManGA
Автор

Can you please do for Embarcadreo Rad studio C++ I am struggling to install websocket ++ libraries

Mhmhind
Автор

You define the CMAKE_MSVC_RUNTIME_LIBRARY twice, wouldnt it always just use the one set last, since set is an assignment as far as im aware and not a append operarion.

hexcrown