modern cmake file structure

It appears I got it working.