Clean up CMake rules