better usage of cmake in travis