changed CMakeLists.txt to new build system