Added TM to cmake