adding Profile mode to CMake