Reorganize dake integration for CMake

Provided-by: Papierkorb
Make variables local in flight L1

Provided-by: Papierkorb