CMake fundamentals step by step with basic example - Part 1
ฝัง
- เผยแพร่เมื่อ 27 ก.ย. 2024
- The biggest problem working with C/C++ application development is it's build system.
Also this is one of the bottle neck, where lot of developer doesn't stay long with C/C++ application development, and they look for better and easy build system, which they only get in other programming languages like Rust, Java, C# et. not in C/C++
Also other pain point in C/C++ application development is they have lot of options for build system. Choosing one build system among many is one other pain point. Even after they choose, if project demands
to migrate to other build system, it's a nightmare.
To tackle add these problems we have CMake build system generators
In simple CMake is not a build system rather its generator of build system. You can choose the build system which you want to generate.
Learning CMake is not as simple as we hear, because we thing too much about compiling, linking and including.
In CMake, you can concentrate on organizing your folder structure rather than bothering about your build system and how to edit it. that is the beauty of CMake.
All C/C++ application program has three major things
1. How to create executable, shared library and static library
2. How to supply library to consumers
3. How to consume libraries from others
All these can be addressed easily with CMake irrespective of build system
In this upcoming videos, I will be explaining above three mentioned points
Since it is my first video tutorial, feel free to post your feedback
Really it was very very informative video.
Your teaching style is very good sir.
Any engineer can understand the topic easily.
Thank you so much for your comments, you made my day. Please share and subscribe if you like the video
Awesome Man🎉 this is very useful for embedded engineers..
Very good demo wish I saw this before I went and learned everything, I'll tell others
Thanks bro
Very very informative video to begin with.
The way you taught with an example is very nice.
Your explanation is very good. Please upload next parts of it
Hello Bhavith, Explained very clearly! Thanks a lot. Please, continue this series..
Thanks
waiting for full cmake videos-thanyou for this one.
Can you make some more sessions on CMake, your teaching is easy to understand, please make some more videos ☺
Great lectures
Thankyou so much for this great tutorial
Awesome sir... Thanks
Excellent tutorial. Thanks
Thanks if u like subscribe
and i'm waiting for the further tutorials
i am getting an error as make is not recognized as an internal or external command, i am using visual studio as complier. pls guide me
@@pramath.m297 if you are using Ubuntu please install make.
sudo apt install make
Really it's helpful
Glad to hear that
Where are the parts after this video?
It's a lot interesting your videos but the part two where is? did you promet you'll it doing...
Like to know the reason, why different build system exist for c/c++ ecosystem ?
Good work Bhavith :)
I'm impressed, can you make series of CMake? Cover PUBLIC, PRIVATE and other stuff as well. There is much more into this. As documentation on cmake webpage is S%%T and very confusing.
Sure I gonna do it, if you like kindly share and subscribe
@@e-grasp Already did that ;)
sir ...pls upload part 2, part 3 ASAP
@@e-grasp
Legend
Its' very usefull Video for me.
Thanks Bro
does order of statements written in CMakeLists.txt matter???
Yes and no depends
Is there a part 2 ?
I will do it
Can we use targets/labels like how we use in Makefile ? something like 'make event' ? If it is not possible, could you please suggest some other best and easy build system which supports this?
Yes it is supported. You can add custom target and execute it
Ex: cmake -build build -target test
cmake -build build -target install
@@e-grasp can you paste here a simple sample?
Hi sir, i have multiple .c files in multiple directories. how to write cmakelists.txt file.
In future developers add some more c files how to scan the files?
Sure I gonna upload videos on it.
If you like kindly share and subscribe.
Dear sir,
I couldn't find the part 2 and part 3
I am preparing a content for it I gonna upload it
Excellent introduction, please send the link of part 2
I am yet to do, planning to have complete tutorial
very good video....very informative
plz try to do one more continuation video on cmake..
Thank uu sir...
Sure thanks gonna add more videos
Thank you Bhavith, It is very helpful.
Tnx if u like pls subscribe
Please complete next part
thank you!
Please make subsequent parts
I gonna put a complete playlists
Really Great Tutorial!
Thanks
kindly upload next part lectures
Thanks Sir for this detailed video. I have one confusion. If i generate a library and give it to someone along with header files, then do i need to tell them about build system which i have used to generate library. Will that have any effect on how they build application using the library.
Yes Amit you are correct, I will upload video on that. Also you need to expose your headers.
nice explanation and useful concept bhavith 👍👌
Thanks Vijay