Adding KDAlgorithms as a Git Sub-Module

preview_player
Показать описание
If you want to use some other git projects in your code base, you have a few competing options.
The, by far, simplest one is to just copy the code in but that has the problem that updates to the original code are a bit of work to get into your code base.

A much better alternative is to make the code into a git sub-module.

This episode will show you how to do just that, using the kdalgorithms git-hub module.
Further, it will also tell you a few tricks to make working with sub-modules easier in CMake projects

Links:

0:00 Introduction
2:40 Initial git clone
4:08 Adding the sub-module
7:07 Commit the changes
7:40 Doing a clean checkout - sub-module missing
10:53 CMake function: CheckSubmoduleExists
13:47 git clone --recursive-submodules

All Qt Widgets and more videos:

About the host:
The video is presented by Jesper Pedersen, who started with Qt back when Qt was widgets only and the version was 1.44, which gives him 21 years of experience with Qt. Since 2000 he has taught almost 100 Qt classes, ranging from Qt Widgets to QML. Heck, Jesper even taught a few classes on QTopia Core — Trolltech's initial attempt at creating a phone stack. Today Jesper holds a fancy business title, but that doesn't prevent him from coding both in his job and in his spare time.

About KDAB:

KDAB experts regularly take time out to deliver KDAB’s world class training, in-house or at open enrolment courses around the world. We are the market leaders for training in Qt, OpenGL and C++.

Рекомендации по теме