Converting THbtp to the native cmake