~/talk

Embracing Modern CMake

Talkat NDC TechTown 2019 · 2019-09-02..09-05· [rust]
links:none on file
slides:none on file

Argues that “Modern CMake” is a target‑centric style introduced around 2011 and present since CMake 3.1 (Dec 2014), urging migration from directory variables and include_directories to target_include_directories and target_compile_definitions, using target_link_libraries with double‑colon names (e.g. Qt5::Widgets) and imported/alias targets so CMake enforces build order and usage requirements. Covers PUBLIC/PRIVATE/INTERFACE semantics, generator expressions for config‑time conditions, policies via cmake_minimum_required, and notes recent additions like target precompiled headers.

AI-written summary · about

  1. 0:00Start
  2. 0:42Background
  3. 5:20The Good News
  4. 10:22When to Set a Polry to OLD
  5. 13:00Modern Make Guidelines
  6. 14:28Defining a Buildsystem
  7. 20:14Transitive compile dependency
  8. 22:29Transitive Scope
  9. 22:50indude directories command
  10. 26:47Compile Definitions
  11. 31:34Reliance on variables
  12. 33:32Problems with variables
  13. 40:50Generator Expressions basics
  14. 41:41Truthiness conversion
  15. 42:17Support for Generator Expressions
  16. 45:38target_link_libraries
  17. 48:47Make Target types
  18. 50:56External dependencies
  19. 54:42Creating Packages
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.