Fixed CMakeLists.txt to generate message headers