[cmake] Add header existence tests (#685)

3 files changed