replaced autotools with cmake