Update CMakeList.txt and add sourcefile