Working with CLion all the time I had to write a new CMakeFile. Finally, I created a simple template and decided to share by it.

https://gist.github.com/an-dr/cee58b52eec3467249ba4ed1aa3704ac