Skip to content

Instantly share code, notes, and snippets.

View peterspackman's full-sized avatar

Peter Spackman peterspackman

View GitHub Profile
#!/bin/sh
umask 077
# File extension for the notes
note_ext="md"
fzf_opts="--height 50%"
# Preview script part of FZF.vim. Defaults to something else if not present (but
# not as fancy)
@mbinna
mbinna / effective_modern_cmake.md
Last active May 21, 2024 08:25
Effective Modern CMake

Effective Modern CMake

Getting Started

For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.

After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft

(?:B(?:A(?:R(?:R(?:A(?:G(?:ANYATTI|GA BAY|UP)|CK (?:HEIGHTS|POINT)|M(?:ORNIE|UNGA)|POR(?:T WES)?T|B(?:OOL|UP|A)|KEE|TTA)|E(?:N(?: GROUNDS|GARRY)|TT(?:S CREEK|A))|IN(?:G(?:TON(?: TOPS)?|(?:ELL|H)A|UN)|E)|O(?:W (?:ISLAND|CREEK)|N(?: GORGE)?)|Y(?:S REEF)?)|N(?:E(?:Y(?: (?:POINT|VIEW)|S REEF)|S BAY)|A(?:WARTHA(?: NORTH)?|DOWN|RD)?|DIOOTA|SLEY)|K(?:ER(?:S (?:CREEK|VALE)| CREEK FLAT)|STEAD|LY)|O(?:NGAROOK(?: WEST)?|SSA GOLDFIELDS|O[GT]A|MI)|W(?:ON(?: (?:DOWN|HEAD)S)?|I(?:DG(?:EE|I)|TE))|A(?:N(?:GAROO|DUDA)|(?:LA|B)BA|DINE|MBAH)?|D(?:WELL (?:VALLEY|PARK)|EN RIDGE|ON)|UN(?:AH P(?:LAINS|ARK)|GA(?: GAP)?)|M(?:E(?:DMAN|RA)|A(?:RYEE|H)|OYA)|I(?:N(?:GHUP(?: WEST)?|IA)|GAN)|C(?:ALDINE(?: DOWNS)?|OONGERE)|E(?:LLAN(?: POINT)?|E(?:NA)?)|B(?:(?:ERTO|ALI)N|IGAL)|L(?:(?:OWS HIL|I)L|YNE)| (?:BEACH|POINT)|T(?:LE FRERE|ON)|G(?:ARA|O)|YULGIL|FOLD|JARG|HAM)|L(?:L(?:A(?:R(?:AT(?: (?:ROADSIDE DELIVERY|(?:EA|WE)ST|CENTRAL|NORTH|MC))?|OO|D)|DO(?:N(?:IA|G)|RAN)|(?: BALL|JUR|LAB)A|N(?:GEICH|DEAN)?|ST HEAD|YING|PUR)|I(?:ANG(?: EAST)?|MORE|D