Simplify CMakeLists.txt, avoid problems of packagers