dependency chain
- a -> b1 -> test1 (does not see a headers or defines)
- a -> b2 -> test2 (sees a headers and defines)
Switch use is optional (the -Dexample_switch=XXX)
Windows:
mkdir buildcmake -B build -Dexample_switch=OFFcmake --build build --config RelWithDebInfo
Linux:
mkdir buildcmake -B build -Dexample_switch=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfocmake --build build