Adapted CMakeLists.txt