If you have a hot glue gun (a craft gun works fine for me), try that -- you can do a bit at a time, it sets fast (makes it easier to get good results) and, should everything go to heck, isn't a big deal to pull back out.
Using a slower-setting glue could be problematic unless you get the t-mold securely and uniformly taped to the cabinet while it sets ... depending on the t-mold and fit, you could get ripples ... and you probably don't want to be pulling the t-mold out once the glue sets.
My $.02.