Updated CMakeLists.txt

Need it for generating a compilation database, for use with YouCompleteMe etc.