Simplify CMakeLists by integrating common