Changed to cmake, implemented change code for transposition