Modified CMakeLists.txt for profiling