Update CMakeLists.txt

add functions for phas