Tips and Tricks for Becoming a CMake Master
summary
Shows how to ship a self-made find_package module for Oracle (targets Oracle 12, GCC 10, CMake 3.18) and a reproducible pipeline that runs Oracle ProC to convert ~80 embedded-SQL files spread over many CMake targets into C++ before compilation. Extracts GCC’s default include paths, sets per-file warning suppression for generated sources, wires add_custom_command via an execute_process wrapper to capture output cleanly, and uses generator expressions* and target interface properties so the build is correct and repeatable.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 3:24Manual build for embedded SQL
- 5:55CMake basics
- 8:58CMake variables and find_package
- 12:12Oracle installation paths
- 15:17Oracle include directories
- 22:18External libraries and targets
- 23:45Compiler include paths
- 29:18Oracle Pro*C compiler
- 32:50Reusable CMake functions
- 41:01Source files and outputs
- 46:19Target properties and generator expressions
- 51:20Build cleaning and errors
- 53:43Custom silent commands
related talks
01h 07mCMake: A Case Study
01h 01mLessons Learned from Packaging 10,000+ C++ Projects
01h 01mCMake — From Basics to Building
55mCMake for the impatient
55mOvercoming C++ Embedded Development Tooling Challenges
01h 00mCross-Platform Pitfalls and How to Avoid Them
01h 06mCommand Line C++ Development
45mBuilding C++: It Doesn't Have to be Painful!
