Otherwise gcc complains. I've tested this to work with the normal CMakeLists.txt provided in a few examples.