How to Properly Setup C++ Projects

preview_player
Показать описание


📚 CHAPTERS
0:00 - C++ project architecture
5:10 - My C++ project template
10:55 - Applying this setup to an existing project
27:00 - Problems
29:44 - Regret

💰 Links to stuff I use:

This video is sponsored by Brilliant.s
Рекомендации по теме
Комментарии
Автор

Thanks for watching! Hope you enjoyed the video!

TheCherno
Автор

This video fills a knowledge gap that I think a lot of beginner to intermediate C++ developers likely have. Thanks Yan!

lukeburton
Автор

This 2000 game engine review turns out to be supper useful, thanks a lot for both of you guys

MahmdMhanad
Автор

If you want to show us how you'd refactor his code from a maintainability standpoint into a proper setup, I think that would be extremely useful. Too often we focus on refactor for performance, but in this case, just not having to edit two files for one change is a great lesson to impart.

onejdc
Автор

Easily one of your best videos to date. Thanks.

GonziHere
Автор

I would prefere "Modern CMake" over premake and have conan or vcpkg to manage dependencies.

ragnarhammarqvist
Автор

I designed something like this for my personal projects. No specific core library, but several other libraries which can be picked from and offer a little more freedom to minimize app footprints. Separating apps and libraries into corresponding subdirectories can help with organization and reusability

David-ocyt
Автор

I was actually waiting for this for the longest time. Thanks Yan.

SownJevan
Автор

We all waiting for your video, Love the way you teach us ❤

amritraj
Автор

From what I understand, CMake also generates projects for Visual Studio. In this case, it's cross-platform, creating a Makefile on Unix and a Visual Studio project on Windows

canalbomon
Автор

This might possibly be the most needed video for C++ developers.

theepicman
Автор

I love the approach; I will definitely try it out! Thank you! 👍😉

palrevesz
Автор

Love this guy gives so much accurate details.

niteshpatel
Автор

elite video, this type of stuff is really good for beginners

blamechickenman
Автор

1. Thanks for this video. It makes a lot of sense and a good example for newbies on how to structure a C++ project properly.
2. At this point, on Dec 31 of 2023, this is the last video in the "C++" playlist. And I watched every single video from it. Which took 23+ hours in total + half of it for writing down notes.
THANK YOU for making this whole YouTube-based course.
3.

dmytroboiko
Автор

Thank you so much for making this video!

avtem
Автор

Nice to see a video about project setup. But please people, prefer out-of-source builds! CMake supports and recommends it, I hope Premake also. While having your generated project files sitting next to your code sounds like a good idea, it will bring more problems than solutions in the future. Build into a separate folder, you can even have different folders for different build types or experiments. Deleting a single folder ensures a clean state of the project.
in CMake:
git clone <your_repo> <folder>
cd <folder>
mkdir build
cd build
cmake ..
cmake --build .

PauGuillamon
Автор

OMG, this is something I've been looking for a long time, and no one had this as a whole guide showing best practices. Thank you so much!

ArenGorman
Автор

Not sure why, but I have always had a hard time with this. Thank you!

johnmanardiii
Автор

finally I waited so long for this vid!!

realishak