CMake fundamentals step by step with basic example - Part 1

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ก.ย. 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

ความคิดเห็น • 59

  • @pavvih5791
    @pavvih5791 ปีที่แล้ว +6

    Really it was very very informative video.
    Your teaching style is very good sir.
    Any engineer can understand the topic easily.

    • @e-grasp
      @e-grasp  ปีที่แล้ว

      Thank you so much for your comments, you made my day. Please share and subscribe if you like the video

  • @crosby3108
    @crosby3108 11 วันที่ผ่านมา

    Very good demo wish I saw this before I went and learned everything, I'll tell others

    • @e-grasp
      @e-grasp  7 วันที่ผ่านมา

      Thanks bro

  • @sabujmondal881
    @sabujmondal881 ปีที่แล้ว +2

    Very very informative video to begin with.
    The way you taught with an example is very nice.

  • @axramar1992
    @axramar1992 5 หลายเดือนก่อน +2

    Awesome Man🎉 this is very useful for embedded engineers..

  • @YashmithaGanesh
    @YashmithaGanesh 3 หลายเดือนก่อน +1

    Your explanation is very good. Please upload next parts of it

  • @karthikchockalingam3144
    @karthikchockalingam3144 ปีที่แล้ว +2

    Hello Bhavith, Explained very clearly! Thanks a lot. Please, continue this series..

    • @e-grasp
      @e-grasp  ปีที่แล้ว

      Thanks

  • @ChaitanyaKrishnabodduluri
    @ChaitanyaKrishnabodduluri 11 หลายเดือนก่อน +1

    waiting for full cmake videos-thanyou for this one.

  • @gowthamE-ng4ib
    @gowthamE-ng4ib 4 หลายเดือนก่อน +1

    Its' very usefull Video for me.
    Thanks Bro

  • @Shiv-hn1di
    @Shiv-hn1di 4 หลายเดือนก่อน +1

    Can you make some more sessions on CMake, your teaching is easy to understand, please make some more videos ☺

  • @harishchandrasingh3763
    @harishchandrasingh3763 8 หลายเดือนก่อน +1

    Thank you Bhavith, It is very helpful.

    • @e-grasp
      @e-grasp  8 หลายเดือนก่อน

      Tnx if u like pls subscribe

  • @IndirapriyaDuvvu-q1v
    @IndirapriyaDuvvu-q1v 10 หลายเดือนก่อน +1

    Thankyou so much for this great tutorial

  • @saisravani3666
    @saisravani3666 ปีที่แล้ว +1

    very good video....very informative
    plz try to do one more continuation video on cmake..
    Thank uu sir...

    • @e-grasp
      @e-grasp  ปีที่แล้ว

      Sure thanks gonna add more videos

  • @timmuston2687
    @timmuston2687 11 หลายเดือนก่อน +1

    Excellent tutorial. Thanks

    • @e-grasp
      @e-grasp  11 หลายเดือนก่อน

      Thanks if u like subscribe

  • @thesoul2086
    @thesoul2086 ปีที่แล้ว +1

    Great lectures

  • @sunilkumarkushawaha7997
    @sunilkumarkushawaha7997 11 หลายเดือนก่อน +1

    Awesome sir... Thanks

  • @harshitaarya7619
    @harshitaarya7619 6 หลายเดือนก่อน +1

    Really Great Tutorial!

    • @e-grasp
      @e-grasp  6 หลายเดือนก่อน

      Thanks

  • @319nsor3
    @319nsor3 10 หลายเดือนก่อน +1

    It's a lot interesting your videos but the part two where is? did you promet you'll it doing...

  • @ashruelectronic
    @ashruelectronic 7 หลายเดือนก่อน +1

    Excellent introduction, please send the link of part 2

    • @e-grasp
      @e-grasp  7 หลายเดือนก่อน

      I am yet to do, planning to have complete tutorial

  • @Learner-Explorer
    @Learner-Explorer ปีที่แล้ว +1

    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.

    • @e-grasp
      @e-grasp  ปีที่แล้ว

      Sure I gonna do it, if you like kindly share and subscribe

    • @Learner-Explorer
      @Learner-Explorer ปีที่แล้ว +1

      @@e-grasp Already did that ;)

    • @maddusomeshkumar
      @maddusomeshkumar 11 หลายเดือนก่อน

      sir ...pls upload part 2, part 3 ASAP
      @@e-grasp

  • @gowthamE-ng4ib
    @gowthamE-ng4ib 4 หลายเดือนก่อน +1

    and i'm waiting for the further tutorials

  • @lakshmijacharya9175
    @lakshmijacharya9175 ปีที่แล้ว +1

    Really it's helpful

    • @e-grasp
      @e-grasp  ปีที่แล้ว

      Glad to hear that

  • @vijaykumarkari
    @vijaykumarkari ปีที่แล้ว

    nice explanation and useful concept bhavith 👍👌

    • @e-grasp
      @e-grasp  ปีที่แล้ว

      Thanks Vijay

  • @sitmovie4197
    @sitmovie4197 ปีที่แล้ว +1

    Please complete next part

  • @vinothrajendran1951
    @vinothrajendran1951 ปีที่แล้ว +1

    Like to know the reason, why different build system exist for c/c++ ecosystem ?

  • @pramath.m297
    @pramath.m297 3 วันที่ผ่านมา +2

    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

    • @e-grasp
      @e-grasp  2 วันที่ผ่านมา

      @@pramath.m297 if you are using Ubuntu please install make.
      sudo apt install make

  • @markuskluever4059
    @markuskluever4059 ปีที่แล้ว +1

    thank you!

  • @AzizBenmaaouia-g2q
    @AzizBenmaaouia-g2q 7 หลายเดือนก่อน +1

    Legend

  • @akumar9684
    @akumar9684 ปีที่แล้ว +2

    Where are the parts after this video?

  • @vijay_d_weird
    @vijay_d_weird ปีที่แล้ว +1

    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?

    • @e-grasp
      @e-grasp  ปีที่แล้ว

      Yes it is supported. You can add custom target and execute it
      Ex: cmake -build build -target test
      cmake -build build -target install

    • @vijay_d_weird
      @vijay_d_weird ปีที่แล้ว

      @@e-grasp can you paste here a simple sample?

  • @shambhukumarvlogs0
    @shambhukumarvlogs0 9 หลายเดือนก่อน

    kindly upload next part lectures

  • @AshokKumar-qi4nr
    @AshokKumar-qi4nr ปีที่แล้ว +1

    Please make subsequent parts

    • @e-grasp
      @e-grasp  ปีที่แล้ว

      I gonna put a complete playlists

  • @randomsoul00
    @randomsoul00 10 หลายเดือนก่อน +1

    does order of statements written in CMakeLists.txt matter???

    • @e-grasp
      @e-grasp  10 หลายเดือนก่อน

      Yes and no depends

  • @airfix5857
    @airfix5857 9 หลายเดือนก่อน +1

    Is there a part 2 ?

    • @e-grasp
      @e-grasp  9 หลายเดือนก่อน

      I will do it

  • @ulavinash
    @ulavinash ปีที่แล้ว +1

    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?

    • @e-grasp
      @e-grasp  ปีที่แล้ว

      Sure I gonna upload videos on it.
      If you like kindly share and subscribe.

  • @AMITKUMAR-ys4oe
    @AMITKUMAR-ys4oe ปีที่แล้ว

    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.

    • @e-grasp
      @e-grasp  ปีที่แล้ว

      Yes Amit you are correct, I will upload video on that. Also you need to expose your headers.

  • @ZeroCooll754
    @ZeroCooll754 ปีที่แล้ว

    Dear sir,
    I couldn't find the part 2 and part 3

    • @e-grasp
      @e-grasp  ปีที่แล้ว +1

      I am preparing a content for it I gonna upload it