Fix TTCurve for CMake