Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Enterprise CMake Mastery: 100 Labs, GPU & Supply Chain
Rating: 3.6 out of 5(8 ratings)
24 students

Enterprise CMake Mastery: 100 Labs, GPU & Supply Chain

Master advanced CMake: cross-compilation, CUDA, SBOMs, and reproducible builds for C++ across 100 hands-on labs.
Last updated 10/2026
English
English [Auto],

What you'll learn

  • Structure target-centric CMakeLists.txt files with scoped properties, generator expressions, and clean interface/public/private boundaries.
  • Manage dependencies with FetchContent, vcpkg, and Conan 2.0, including hash-pinned, air-gapped dependency resolution.
  • Build deterministic toolchains with Ccache, LLD/Mold linking, LTO, and hermetic compiler bundling for reproducible builds.
  • Cross-compile to Android, iOS, RISC-V, bare-metal ARM Cortex-M, and WebAssembly from a single CMake project.
  • Integrate CUDA and GPU compute into CMake: separable compilation, TensorRT, HIP/ROCm, and SYCL heterogeneous targets.
  • Wire in sanitizers, static and dynamic analysis, fuzz testing, TPM attestation, and SBOM generation as quality gates.
  • Master CTest for dynamic test discovery, parallel execution, cross-compiled test runs, and CDash dashboard reporting.
  • Package and sign releases with CPack: DEB, RPM, MSI, and macOS bundles, with cryptographic hashing and secure registries.
  • Containerize and orchestrate CMake-driven builds with Docker, Kubernetes manifests, and GitHub Actions or GitLab CI matrices.
  • Architect an autonomous, hermetic, GPU-enabled build and deployment pipeline as your capstone project.

Course content

2 sections • 112 lectures • 8h 0m total length
  • Introduction5:52
  • Module 1: Foundations, Local Forge, and Initial Success7:49
  • Module 2: Advanced Target Properties and Object Libraries6:45

    Explore how projection converts 3d scenes to a 2d screen, compare orthographic and perspective views, and use the z-buffer to resolve depth and prevent z-fighting.

  • Module 3: Dependency Injection and Package Management6:31

    Master C++ dependency management by using find_package in module or config mode, fetch_content for online ingredients, and package managers like vcpkg or Conan; adopt a find-first, fetch-if-needed strategy.

  • Module 4: Advanced Toolchains and Compiler Orchestration7:47
  • Module 5: Cross-Compilation and Heterogeneous Hardware6:02

    Explore cross-compilation for heterogeneous hardware, bridging x86 and ARM architectures with universal binaries, multi-arch images, and the quest for WebAssembly as a universal run-anywhere solution.

  • Module 6: High-Performance Compute and GPU Integration7:13
  • Module 7: Hardware-Rooted Security and Quality Gates6:42
  • Module 8: Advanced Testing Strategies and CTest Mastery7:22

    Use C-Test as a project blueprint to orchestrate sanitizers that reveal memory flaws like use-after-free and buffer overflows, then employ chaos engineering to build resilience.

  • Module 9: CPack and Sovereign Artifact Distribution6:20

    Package software with CPAC using generators to tailor installers for Windows, macOS, and Linux. Sign with GPG, notarize on macOS, and publish an SBOM for trust.

  • Module 10: Sovereign Deployment, Orchestration, and the Capstone7:45
  • Conclusion5:52

    Master the journey from developer to enterprise architect by building hermetic, hardware-rooted security into a zero-trust, cross-compiled, secure packaging pipeline for air-gapped deployment.

Requirements

  • Solid working knowledge of C++ and some prior exposure to CMake — this is not a first CMake course. If you’ve never used CMake before, a beginner-focused course is a better starting point; this one assumes you can already write a basic CMakeLists.txt and takes you from there.
  • A C++ compiler toolchain (GCC, Clang, or MSVC) and CMake 3.25 or newer installed.
  • A GPU with CUDA support for Module 6’s labs.
  • Docker installed for the containerization labs in Module 10.
  • Embedded or mobile toolchains (Android NDK, Xcode, an ARM Cortex-M toolchain) for Module 5’s cross-compilation labs.
  • No prior experience with vcpkg, Conan, CUDA, or CPack is required — each is introduced from first principles before the labs go deep.

Description

This course contains the use of artificial intelligence.

We only charge a fee solely for the time invested in building this comprehensive curriculum.

Enterprise CMake Mastery is a hands-on course for C++ engineers who want to move past “my project builds on my machine” into build systems that are deterministic, cross-compiled, secure, and trusted by a supply chain audit. Across 100 labs you go from target-centric CMake fundamentals to dependency management, deterministic toolchains, cross-compilation to real embedded and mobile targets, GPU integration, security quality gates, testing, packaging, and CI/CD.

Most CMake content stops at “add_executable and add_library work now.” That’s enough to build a small project, but it says nothing about what happens when your build needs to run on three different architectures, pull dependencies with a verifiable hash, generate a software bill of materials, or get signed and packaged for an air-gapped deployment. This course is built around that second, much harder problem: the build system as real infrastructure, not just a compile step.

How the course works

Each of the 100 labs is a focused build with a title that states exactly what you configure, such as a toolchain file, a cross-compilation target, an SBOM generation step, or a CPack packaging rule. You configure it, build it, and verify the result before moving to the next lab.

What you’ll work with

  • Target-centric CMake: generator expressions, scoped properties, and transitive usage requirements

  • FetchContent, vcpkg, and Conan 2.0 for dependency management

  • Ccache, LLD/Mold, IPO/LTO, and hermetic, reproducible toolchains

  • Cross-compilation to Android, iOS/macOS, RISC-V, ARM Cortex-M, and WebAssembly

  • CUDA, TensorRT, HIP/ROCm, and SYCL for GPU-enabled builds

  • ASan/TSan/UBSan, clang-tidy, libFuzzer, and SBOM generation (CycloneDX)

  • CTest, Catch2/GoogleTest, and CDash reporting

  • CPack: DEB, RPM, MSI, and macOS packaging, with cryptographic signing

  • Docker, Kubernetes manifests, GitHub Actions, and GitLab CI

What’s inside

Module 1, Foundations, Local Forge, and Initial Success. You bootstrap your environment, learn CMake’s generator paradigm, and structure a top-level CMakeLists.txt for scale. You move to target-centric thinking, work through configure/generate/build stages, scope variables correctly, write generator expressions, structure a real source tree, master the CLI, and finish by bootstrapping a multi-node project.

Module 2, Advanced Target Properties and Object Libraries. You enforce strict interface/public/private dependency isolation and use object libraries to speed up large monorepo builds. You wire in custom commands and targets for code generation and external tools, manage property inheritance and transitive requirements, enforce compile features and definitions securely, handle position-independent code, and alias targets for clean namespacing.

Module 3, Dependency Injection and Package Management. You work through find_package’s discovery architecture, write custom find modules for legacy C libraries, and export modern config-file packages. You use FetchContent for external dependencies, simulate air-gapped environments by overriding it, integrate vcpkg manifest mode and Conan 2.0, mix source and pre-compiled dependencies, patch upstream code, and pin dependencies with hash verification.

Module 4, Advanced Toolchains and Compiler Orchestration. You write toolchain files for deterministic environments and integrate Ccache for near-instant rebuilds. You abstract flags across Clang, GCC, and MSVC, choose between LLD and Mold for fast linking, apply interprocedural optimization, target specific instruction sets, treat warnings as errors safely, distribute builds, bundle hermetic toolchains, and verify compiler hashes before building.

Module 5, Cross-Compilation and Heterogeneous Hardware. You learn build/host/target triplet theory, then cross-compile for Android NDK, iOS and macOS universal binaries, bare-metal ARM Cortex-M, and RISC-V edge targets. You manage sysroots, run cross-compiled tests under QEMU, handle FetchContent across host and target dependencies, target WebAssembly through Emscripten, and build unified multi-architecture CI matrices.

Module 6, High-Performance Compute and GPU Integration. You enable CUDA as a language and target specific compute capabilities, compare separable and whole-program compilation, and mix C++, CUDA, and PTX in one target. You integrate TensorRT inference pipelines, enable HIP/ROCm for AMD GPUs, work with SYCL for heterogeneous programming, hook in profiling tools, auto-detect hardware capabilities, and integrate OpenMP for multi-threading.

Module 7, Hardware-Rooted Security and Quality Gates. You integrate ASan, TSan, and UBSan sanitizers, wire clang-tidy into the build graph, and run Valgrind and Callgrind as custom commands. You orchestrate libFuzzer fuzz testing, verify build nodes with TPM attestation, strip builds for reproducibility, generate a CycloneDX SBOM, automate binary signing, report code coverage, and automate compliance-style security flag checks.

Module 8, Advanced Testing Strategies and CTest Mastery. You learn CTest’s architecture and dynamically discover tests with Catch2 and GoogleTest. You set up fixtures and teardown, manage parallel test resource constraints, test cross-compiled binaries on real target hardware, publish metrics to CDash, simulate network failures for chaos testing, gate builds on memory-leak metrics, benchmark with Google Benchmark, and build a strict quality-gate validation script.

Module 9, CPack and Sovereign Artifact Distribution. You learn CPack’s generator architecture and build component-based installers. You generate DEB and RPM packages, build Windows MSIs with NSIS and WiX, create macOS .dmg bundles, strip binaries securely for release, package external runtime dependencies, auto-generate compliance documentation, hash release artifacts cryptographically, and publish to secure package registries.

Module 10, Sovereign Deployment, Orchestration, and the Capstone. You containerize build environments with Docker and DevContainers, drive multi-stage Dockerfiles from CMake and CPack, and generate Kubernetes manifests from custom targets. You build CI matrices in GitHub Actions and GitLab CI, automate semantic versioning, integrate Vault for build-time secrets, inject mTLS certificates, and deploy to edge inference nodes with Terraform before the capstone.

The Capstone: Lab 100

The capstone has you build a complete CMake ecosystem from an empty repository: a C++ inference engine that builds for both x86-64 and a cross-compiled ARM64 GPU target using CUDA separable compilation, with FetchContent pulling a hash-pinned dependency and a CycloneDX SBOM generated before compilation. You then sign the build artifact using a build node’s TPM and package it with CPack into a signed .deb containing the binary, its SBOM, and a generated systemd service file.

Why now

As C++ projects increasingly target GPUs, edge hardware, and regulated industries, the build system has become a genuine point of risk: an unverified dependency, an unsigned artifact, or a non-reproducible build can all become security or compliance problems before a single line of application logic runs. This course treats the build system with the engineering rigor that deserves. It is educational, and it is not legal advice on DORA, GDPR, or the EU AI Act.

Start today

In Lab 1 you bootstrap your environment, and by Lab 10 you have a working multi-target project built from a real top-level CMakeLists.txt. Everything that follows builds on that foundation, one real build concern at a time.

Who this course is for:

  • C++ developers who already write CMakeLists.txt files for their own projects but have never had to think about reproducibility, dependency security, or cross-platform packaging. The Goal: move from “it builds on my machine” to a build system that’s deterministic and portable across environments. The Need: a structured deep dive into target-centric design, toolchain files, and dependency management that a basic CMake tutorial doesn’t cover.
  • Systems and embedded engineers who need one build system to target multiple architectures: desktop, mobile, bare-metal, or GPU hardware. The Goal: maintain a single CMake project that correctly cross-compiles to ARM, RISC-V, WebAssembly, or CUDA targets without maintaining separate build setups. The Need: hands-on practice with real toolchain files, sysroots, and heterogeneous compute integration, not abstract cross-compilation theory.
  • Platform and security engineers responsible for supply-chain integrity in regulated or safety-conscious organizations. The Goal: produce builds with verifiable provenance — hash-pinned dependencies, generated SBOMs, signed artifacts — that a security review can actually trust. The Need: concrete, CMake-native patterns for TPM attestation, SBOM generation, and reproducible builds, which general build-tool content doesn’t address.