CMake: A Case Study
summary
Shows how to integrate Oracle embedded-SQL into a CMake build by writing a custom FindPackage module to locate Oracle client libraries and headers and by adding CMake functions that invoke Oracle’s preprocessor to convert tens or hundreds of .sql-in-C files into C++ intermediates. Uses custom targets, per-target generator expressions and target properties to pass include dirs and compiler options, stores intermediates in a build subdir, and verifies the result builds and links on Linux.
AI-written summary · about
chapters (14)
- 0:00CMake case study intro
- 1:12Oracle embedded SQL challenge
- 4:04Project structure & converter
- 8:18Finding Oracle libraries
- 13:31Version checks & error handling
- 19:54Internal compiler targets
- 27:30Preprocessing SQL files
- 31:21Target properties & arguments
- 35:57Processing source files
- 43:32Compiler warnings & errors
- 48:05Generator expressions
- 54:46Custom commands & processing
- 1:01:19Build execution & output
- 1:05:42Conclusion
related talks
55mTips and Tricks for Becoming a CMake Master
59mTips and Tricks for Becoming a CMake Master
55mCMake for the impatient
01h 01mLessons Learned from Packaging 10,000+ C++ Projects
01h 18mIntegrating C++ Code Generation Into a Large CMake Build
01h 26mOur Other C++ Interfaces
01h 34mThings I Learnt While Trying to Avoid Becoming a CMake Expert
19mUsing CMake and vcpkg in Qt application development
