Course Overview
Master vcpkg for Modern C++ Development
Managing third-party libraries in C++ can quickly become complicated. Downloading libraries manually, configuring include and library paths, handling different architectures, and keeping dependencies consistent across projects can be time-consuming and error-prone.
vcpkg provides a modern solution for managing C++ dependencies.
In this hands-on course, you will learn how to use vcpkg to install, configure, integrate, and manage C++ libraries in real-world development environments.
We start with the fundamentals and gradually move into more advanced topics. You will learn how vcpkg works, how to install and update it, search for packages, manage dependencies, and work with different architectures using triplets and custom triplets.
You will also learn how to integrate vcpkg with CMake, MSBuild, and Visual Studio, and how to use both Classic Mode and Manifest Mode for dependency management.
As you progress, we will cover more advanced dependency-management concepts, including:
Package version constraints
Baselines and versioning
Reproducible builds
Automatic dependency resolution
Custom triplets
CMake toolchain files
Visual Studio integration
Best practices for modern C++ dependency management
Throughout the course, we will work with real C++ libraries such as fmt and spdlog, giving you practical experience that you can directly apply to your own projects.
By the end of the course, you will have a solid understanding of vcpkg and be able to use it confidently to build cleaner, more maintainable, and reproducible C++ projects.
What You Will Learn
- Install and configure vcpkg
- Search, install, remove, and upgrade C++ packages
- Work with triplets and create custom triplets
- Integrate vcpkg with CMake and MSBuild
- Use Classic Mode and Manifest Mode
- Manage dependencies with vcpkg.json
- Use version constraints and baselines
- Build reproducible C++ projects
- Integrate vcpkg with Visual Studio
- Apply best practices for professional C++ dependency management
Whether you are a C++ developer, software engineer, embedded developer, or student, this course will give you the practical knowledge you need to start using vcpkg effectively.
No previous vcpkg experience is required.
Let's get started and make C++ dependency management much easier!
FAQ
FAQ area empty
Course curriculum
Chương 1 Welcome 2 bài · 4 phút
Chương 2 Installation 5 bài · 16 phút
- Installing vcpkg on Windows Học thử 4:04
-
Installing vcpkg on Linux 4:19
-
Understanding the vcpkg Folder Structure 3:58
-
Updating vcpkg 2:28
- Installing cmake on Windows Học thử 1:31
Chương 3 Dealing with packages 7 bài · 19 phút
-
Searching Packages 3:43
- Installing Packages Học thử 3:07
-
Folder structure after installing your first package 3:23
-
Installing multiple packages 1:02
- Listing Installed Packages Học thử 0:37
-
Removing Packages 3:03
-
Upgrading Packages 4:13
Chương 4 Understanding Triplets 4 bài · 14 phút
-
What are Triplets? 5:01
- Creating Custom Triplets Học thử 3:50
-
Using a custom Triplet 1:18
-
Add Compiler Flags to a custom Triplet 3:31
Chương 5 Vcpkg modes 2 bài · 5 phút
-
Classic mode 2:59
-
Manifest mode 2:05
Chương 6 Using vcpkg with CMake 6 bài · 17 phút
-
Create the project structure 2:33
-
Create the Source File 1:58
-
Create the Manifest File 1:56
-
Create the CMakeLists.txt File 4:35
-
Configure the Project 3:17
-
Build the project and run the application 2:47
Chương 7 Manifest mode 9 bài · 28 phút
-
Adding multiple dependencies 1:46
-
Adding dependencies with features 4:42
-
Dependencies Common mistakes 1:19
-
Baselines 4:04
-
Find the current Baseline 0:48
-
Configure a baseline for your project 4:20
-
Minimum Version Constraints 3:38
-
Version Constraints within Baselines 4:27
-
Common Mistakes and Best practices 2:37
Chương 8 Visual Studio Integration in classic mode 2 bài · 6 phút
-
Create Visual Studio Project 3:19
-
Settings, Build and Run 2:48
Chương 9 Outro 1 bài · 1 phút
-
Outro 0:49
Requirment
-
A Windows computer with Visual Studio 2019 or later installed.
-
Basic knowledge of C++ programming.
-
Basic knowledge of CMake is recommended, but not required.
Outcomes
-
Install and use vcpkg to find, install, remove, and upgrade C++ libraries across different platforms and architectures.
-
Configure dependencies effectively using triplets, custom triplets, manifest mode, version constraints, and baselines.
-
Integrate vcpkg with CMake and Visual Studio to build, debug, and manage modern C++ projects.
-
Create reproducible and maintainable C++ builds by controlling dependency versions and automating dependency management with vcpkg.
0 Student
1 Course
0 review