Mô tả

Learning CMake was never so easy!

Welcome to the course Master CMake for Cross-Platform C++ Project Building, where you will learn the CMake tool from the beginning. After completing this course, you'll be able to

  • Build CMake based projects,

  • Export your project, and

  • Link your executable against any CMake/ Non-Cmake based library


Enroll Now and enjoy the 3.5-hours ride to learn the most powerful way of building the C++ projects.


This course is made after extensive research on Stackoverflow, Quora, Reddit, Youtube, and other Q&A websites to handpick the concepts which are difficult to understand for the beginners. The course starts with compiling a simple C++ code; and, over the modules, various functionalities are added as the complexity increases.

The broad outline of the course is as follows:

  1. Section 1:

    1. Problems associated with NOT using a build system

    2. Difference between a build system (Make) and a meta-build system (CMake).

  2. Section 2:

    1. Installation of CMake

    2. First executable using the CMake

  3. Section 3:

    1. Managing large projects using sub-directories

  4. Section 4:

    1. Variables, Lists, and Strings

    2. Scripting Capabilities of CMake

  5. Section 5:

    1. Flow Control commands (If-else commands and the Loops)

    2. Functions, Scopes, Macros, Modules, and Listfiles.

  6. Section 6:

    1. Configuring a project using Cache Variables

    2. Concept of Libraries

    3. Using Ninja Build System with CMake

  7. Section 7:

    1. Installation a package that is developed by someone else

    2. Export our package so that someone else can use it

  8. Section 8:(Read through Section)

    1. Miscellaneous small concepts, FAQs and tips

  9. Section 9:

    1. Problems while installing and using External Libraries

    2. Using External Libraries developed using both CMake and Non-CMake based build systems


Enroll Now and enjoy the 3.5-hours ride to learn the most powerful way of building the C++ projects.

Bạn sẽ học được gì

CMake Commands and Terminologies

Importance of Make and CMake

Importing and Exporting Packages

CMake's Scripting Mode

Configure Project Building using Cache Variables

Linking against External Libraries

Yêu cầu

  • Basic Understanding of C or C++ programming language
  • For following along, a Linux based Computer is required

Nội dung khoá học

10 sections

Introduction

5 lectures
Before You Begin
00:24
Building a C++ Project using G++
07:40
Need of Build Systems
03:15
Need of Meta Build System
03:34
Project Compilation
2 questions

CMake Installation and Building the First Target

7 lectures
CMake Installation
05:58
Build Files Generation Process
03:44
Generating the First Executable using CMake
04:40
Generating the First Library
02:57
Targets' Properties and Dependencies
02:14
FAQ on Targets
03:31
Targets
4 questions

Managing Project Files and Folders using Subdirectories

5 lectures
Sub-directories
06:54
Managing Header Files
04:00
CMake way of Including the Header Files
03:40
Target Properties and Propagation Scopes
02:39
Propagation of Target Properties
06:27

Variables, Lists and Strings

5 lectures
Normal Variables
06:02
Quoted and Unquoted Arguments
02:52
Manipulating Variables
05:09
Lists and Strings
05:57
Variables
2 questions

Control Flow Commands, Functions, Macros, Scopes and Listfiles

9 lectures
If-Else Command
10:27
Looping Commands
05:31
Functions
04:20
Optional Arguments of Functions
04:41
Scopes
06:48
Target Properties Propagation
1 question
Macros
04:12
Functions & Macros
3 questions
Listfiles and Modules
01:37

Cache Variables

3 lectures
Setting a Cache Variable
04:41
Modification of Cache Variables
03:57
Cache Variables: CMAKE_VERSION, CMAKE_PROJECT_NAME, CMAKE_GENERATOR
06:44

Installing and Exporting Package

4 lectures
Requirements for Installing/Exporting Package
01:57
Installation Process of Packages
04:14
Exporting a Package
04:17
Using a 3rd party Package in our Project
05:44

Tips/FAQs

5 lectures
Introduction
00:05
Commenting in CMake
00:41
Using CMake variables in CPP files
00:19
Running CMakeLists.txt in Script mode
00:29
Debug/Release Mode
00:59

Linking External Libraries

9 lectures
Problems with Linking External Libraries
04:49
Installation of OpenCV (External Package)
06:03
Using OpenCV in a Project
06:45
Using External Package
1 question
Using Pkg-Config to link GTK3 Library
10:36
pkg_check_modules() v/s pkg_search_module() commands
1 question
find_library() and find_path() commands
06:54
Writing a Find* module
17:34
Read Through: FindGTK3.cmake
00:34

Bonus

1 lectures
Bonus Lecture
00:33

Đánh giá của học viên

Chưa có đánh giá
Course Rating
5
0%
4
0%
3
0%
2
0%
1
0%

Bình luận khách hàng

Viết Bình Luận

Bạn đánh giá khoá học này thế nào?

image

Đăng ký get khoá học Udemy - Unica - Gitiho giá chỉ 50k!

Get khoá học giá rẻ ngay trước khi bị fix.